From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id BC9523858407; Tue, 4 Apr 2023 12:30:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC9523858407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680611447; bh=XZ3ErFbEAt+43AHwt4QuNEu6Nu4mlMHyDU60aNt1CY8=; h=From:To:Subject:Date:From; b=OqhH8teQNfMXIKPXq7qnI9sBQR+vmJ250ayqqQWK7njQejFfAWTpjX4JV5glA4Jna DA2SYEWhBr8QsTVz0AlRkaJga+5atOfABSQjY7oAb4vWxBOekJNtokp0bu4B+5JXhx VB5IFd2uCRmJAY/DyAyskGe3QoRKw8OgveK+6CWs= 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] powerpc: 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: 370da8a121c3ba9eeb2f13da15fc0f21f4136b25 X-Git-Newrev: 59db5735e62daa697d3899aeb69cc1b29eb7b044 Message-Id: <20230404123047.BC9523858407@sourceware.org> Date: Tue, 4 Apr 2023 12:30:47 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=59db5735e62daa697d3899aeb69cc1b29eb7b044 commit 59db5735e62daa697d3899aeb69cc1b29eb7b044 Author: Adhemerval Zanella Date: Mon Apr 3 16:10:43 2023 -0300 powerpc: Disable stack protector in early static initialization Similar to fb95c316382679c0826cc8399760977cd95f15c9, also disable for string-ppc64.c (pulled on rltd as the default string implementation). Checked on powerpc64-linux-gnu. Diff: --- sysdeps/powerpc/powerpc64/multiarch/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/powerpc/powerpc64/multiarch/Makefile b/sysdeps/powerpc/powerpc64/multiarch/Makefile index 57de4a29c4..27d8495503 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/Makefile +++ b/sysdeps/powerpc/powerpc64/multiarch/Makefile @@ -39,3 +39,6 @@ endif CFLAGS-strncase-power7.c += -mcpu=power7 -funroll-loops CFLAGS-strncase_l-power7.c += -mcpu=power7 -funroll-loops endif + +# Called during static initialization +CFLAGS-strncmp-ppc64.c += $(no-stack-protector)