From: Adhemerval Zanella Date: Mon, 3 Apr 2023 19:10:43 +0000 (-0300) Subject: powerpc: Disable stack protector in early static initialization X-Git-Tag: glibc-2.38~423 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59db5735e62daa697d3899aeb69cc1b29eb7b044;p=thirdparty%2Fglibc.git 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 --git a/sysdeps/powerpc/powerpc64/multiarch/Makefile b/sysdeps/powerpc/powerpc64/multiarch/Makefile index 57de4a29c4d..27d8495503a 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)