public inbox for
help / color / mirror / Atom feed
From: Adhemerval Zanella <>
Subject: [glibc] string: Disable stack protector in early static initialization
Date: Thu,  9 Feb 2023 11:40:41 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=fb95c316382679c0826cc8399760977cd95f15c9

commit fb95c316382679c0826cc8399760977cd95f15c9
Author: Adhemerval Zanella <>
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
    Reviewed-by: Carlos Eduardo Seo <>

 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)

                 reply	other threads:[~2023-02-09 11:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).