bootx_init.c:88: undefined reference to `__stack_chk_fail_local'
Christian Kujau
lists at nerdbynature.de
Thu Jan 5 05:33:05 AEDT 2017
On Wed, 4 Jan 2017, Christophe LEROY wrote:
> Using GCC 5.4.0, I don't have that issue. bootx_init.o only contains reference
> to __stack_chk_fail
FWIW, building with a GCC 5.2 crosscompiler succeeds (with
CONFIG_CC_STACKPROTECTOR_STRONG=y), but I don't know if it will boot
though, see my other mail in this thread:
https://lists.ozlabs.org/pipermail/linuxppc-dev/2017-January/152623.html
So, would the following be sufficient? It compiles, but I haven't had a
chance to boot yet.
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
Thanks,
Christian.
--
BOFH excuse #156:
Zombie processes haunting the computer
More information about the Linuxppc-dev
mailing list