public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] string: Disable stack protector in early static initialization
Date: Thu,  9 Feb 2023 11:40:41 +0000 (GMT)	[thread overview]
Message-ID: <20230209114041.64EAB3858414@sourceware.org> (raw)

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)

                 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20230209114041.64EAB3858414@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

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