From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 64EAB3858414; Thu, 9 Feb 2023 11:40:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64EAB3858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675942841; bh=FSMJBqNnpgQ6qqyQGaAm/SrnvreS6Qiei5Fo989P8GI=; h=From:To:Subject:Date:From; b=wAm15JeF5sRP3n9mKyUmrs2cuWPKmICnkqIu/fcq32Bf8eTAIcEud5+elTzWNh4Au kRmuxGs3S+q8UeaPw7jufpoYc60v25v2to0YwO7yImqYMWeEGEMb5YnINGPNjrx8ji KddGM5ic5JgYjETFBUwrFIJCjvI1KJBZ2p66JGko= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] string: Disable stack protector in early static initialization X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/master X-Git-Oldrev: 22999b2f0fb62eed1af4095d062bd1272d6afeb1 X-Git-Newrev: fb95c316382679c0826cc8399760977cd95f15c9 Message-Id: <20230209114041.64EAB3858414@sourceware.org> Date: Thu, 9 Feb 2023 11:40:41 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;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 __tcb_parse_hwcap_and_convert_at_platform. Reviewed-by: Carlos Eduardo Seo 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)