public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] string: Disable stack protector in early static initialization
@ 2023-02-09 11:40 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2023-02-09 11:40 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fb95c316382679c0826cc8399760977cd95f15c9

commit fb95c316382679c0826cc8399760977cd95f15c9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Feb 6 15:07:44 2023 -0300

    string: Disable stack protector in early static initialization
    
    For powerpc, strncmp is used on _dl_string_platform issued by
    __tcb_parse_hwcap_and_convert_at_platform.
    
    Reviewed-by: Carlos Eduardo Seo <carlos.seo@linaro.org>

Diff:
---
 string/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/string/Makefile b/string/Makefile
index 3eced0d027..c84b49aaa5 100644
--- a/string/Makefile
+++ b/string/Makefile
@@ -230,6 +230,8 @@ LDFLAGS-tst-xbzero-opt = -z now
 # Called during TLS initialization.
 CFLAGS-memcpy.c += $(no-stack-protector)
 CFLAGS-wordcopy.c += $(no-stack-protector)
+# Called during static initialization
+CFLAGS-strncmp.c += $(no-stack-protector)
 
 CFLAGS-argz-next.c += $(config-cflags-wno-ignored-attributes)
 CFLAGS-basename.c += $(config-cflags-wno-ignored-attributes)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-09 11:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 11:40 [glibc] string: Disable stack protector in early static initialization Adhemerval Zanella

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).