public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Make stdlib/testmb compile when _FORTIFY_SOURCE is not predefined 2
@ 2023-01-27 19:48 Andreas K. Hüttel
  2023-01-27 20:30 ` Siddhesh Poyarekar
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas K. Hüttel @ 2023-01-27 19:48 UTC (permalink / raw)
  To: libc-alpha; +Cc: Andreas K. Hüttel

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
---
 stdlib/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stdlib/Makefile b/stdlib/Makefile
index e0fc82fc4d..83391d00c1 100644
--- a/stdlib/Makefile
+++ b/stdlib/Makefile
@@ -392,7 +392,7 @@ CFLAGS-tst-qsort.c += $(stack-align-test-flags)
 CFLAGS-tst-makecontext.c += -funwind-tables
 CFLAGS-tst-makecontext2.c += $(stack-align-test-flags)
 
-CFLAGS-testmb.c += -D_FORTIFY_SOURCE=2 -Wall -Werror
+CFLAGS-testmb.c += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Werror
 
 
 # Run a test on the header files we use.
-- 
2.39.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Make stdlib/testmb compile when _FORTIFY_SOURCE is not predefined 2
  2023-01-27 19:48 [PATCH] Make stdlib/testmb compile when _FORTIFY_SOURCE is not predefined 2 Andreas K. Hüttel
@ 2023-01-27 20:30 ` Siddhesh Poyarekar
  2023-01-27 23:45   ` [PATCH] Make stdlib/testmb compile when _FORTIFY_SOURCE is not predefined2 Andreas K. Huettel
  0 siblings, 1 reply; 4+ messages in thread
From: Siddhesh Poyarekar @ 2023-01-27 20:30 UTC (permalink / raw)
  To: Andreas K. Hüttel, libc-alpha, Sam James, Carlos O'Donell

On 2023-01-27 14:48, Andreas K. Hüttel via Libc-alpha wrote:
> Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
> ---

Sam had posted this exact same patch ~6 months ago:

https://patchwork.sourceware.org/project/glibc/patch/20220805201358.2348750-1-sam@gentoo.org/

We had agreed then to use the result of libc_cv_predef_fortify_source 
then, maybe tweaking that check to find the fortification level and 
passing it here.  But maybe that's too much engineering for this little 
test.

I'm OK with this change as is; Sam, could you please push your patch 
after Carlos is done with the 2.37 release?

Thanks,
Sid

LGTM.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>

>   stdlib/Makefile | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/stdlib/Makefile b/stdlib/Makefile
> index e0fc82fc4d..83391d00c1 100644
> --- a/stdlib/Makefile
> +++ b/stdlib/Makefile
> @@ -392,7 +392,7 @@ CFLAGS-tst-qsort.c += $(stack-align-test-flags)
>   CFLAGS-tst-makecontext.c += -funwind-tables
>   CFLAGS-tst-makecontext2.c += $(stack-align-test-flags)
>   
> -CFLAGS-testmb.c += -D_FORTIFY_SOURCE=2 -Wall -Werror
> +CFLAGS-testmb.c += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Werror
>   
>   
>   # Run a test on the header files we use.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Make stdlib/testmb compile when _FORTIFY_SOURCE is not predefined2
  2023-01-27 20:30 ` Siddhesh Poyarekar
@ 2023-01-27 23:45   ` Andreas K. Huettel
  2023-01-28  1:02     ` Siddhesh Poyarekar
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas K. Huettel @ 2023-01-27 23:45 UTC (permalink / raw)
  To: libc-alpha, Sam James, Carlos O'Donell, Siddhesh Poyarekar

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

> 
> I'm OK with this change as is; Sam, could you please push your patch 
> after Carlos is done with the 2.37 release?
> 

Neither Sam nor me can push... :)

-- 
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Make stdlib/testmb compile when _FORTIFY_SOURCE is not predefined2
  2023-01-27 23:45   ` [PATCH] Make stdlib/testmb compile when _FORTIFY_SOURCE is not predefined2 Andreas K. Huettel
@ 2023-01-28  1:02     ` Siddhesh Poyarekar
  0 siblings, 0 replies; 4+ messages in thread
From: Siddhesh Poyarekar @ 2023-01-28  1:02 UTC (permalink / raw)
  To: Andreas K. Huettel, libc-alpha, Sam James, Carlos O'Donell

On 2023-01-27 18:45, Andreas K. Huettel wrote:
>>
>> I'm OK with this change as is; Sam, could you please push your patch
>> after Carlos is done with the 2.37 release?
>>
> 
> Neither Sam nor me can push... :)
> 

Ahh! In that case I'll remember to push as soon as Carlos is done 
cutting the release next week :)

Sid

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-28  1:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27 19:48 [PATCH] Make stdlib/testmb compile when _FORTIFY_SOURCE is not predefined 2 Andreas K. Hüttel
2023-01-27 20:30 ` Siddhesh Poyarekar
2023-01-27 23:45   ` [PATCH] Make stdlib/testmb compile when _FORTIFY_SOURCE is not predefined2 Andreas K. Huettel
2023-01-28  1:02     ` Siddhesh Poyarekar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).