Le 10/01/2017 à 05:32, Benjamin Herrenschmidt a écrit :
On Mon, 2017-01-09 at 18:11 -0800, Christian Kujau wrote:
So, with -fno-stack-protector my GCC 4.9.2 compiles with
CC_STACKPROTECTOR_STRONG=y but panics during boot:

How can it make any sense to have -fno-stack-protector and
CC_STACKPROTECTOR_STRONG=y at the same time ?


As far as I understand, Christian means no stack protector on file bootx_init.o, see below

Christophe

diff --git a/arch/powerpc/platforms/powermac/Makefile b/arch/powerpc/platforms/powermac/Makefile
index 1eb7b45..c7dcab9 100644
--- a/arch/powerpc/platforms/powermac/Makefile
+++ b/arch/powerpc/platforms/powermac/Makefile
@@ -1,4 +1,4 @@
-CFLAGS_bootx_init.o            += -fPIC
+CFLAGS_bootx_init.o            += -fPIC -fno-stack-protector

 ifdef CONFIG_FUNCTION_TRACER
 # Do not trace early boot code

Reply via email to