
Following warning is observed at link.
powerpc-linux-ld.bfd: warning: arch/powerpc/lib/reloc.o: missing .note.GNU-stack section implies executable stack powerpc-linux-ld.bfd: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
Add -zexecstack to KBUILD_LDFLAGS in order to suppress this warning.
Reported-by: Stephane Franjou stephane.franjou@csgroup.eu Signed-off-by: Christophe Leroy christophe.leroy@csgroup.eu --- arch/powerpc/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk index 725a4f48aa..53124f4e80 100644 --- a/arch/powerpc/config.mk +++ b/arch/powerpc/config.mk @@ -10,7 +10,7 @@ PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections \
PF_CPPFLAGS_POWERPC := $(call cc-option,-fno-ira-hoist-pressure,) PLATFORM_CPPFLAGS += -D__powerpc__ -ffixed-r2 -m32 $(PF_CPPFLAGS_POWERPC) -KBUILD_LDFLAGS += -m32 -melf32ppclinux +KBUILD_LDFLAGS += -m32 -melf32ppclinux -zexecstack
# # When cross-compiling on NetBSD, we have to define __PPC__ or else we