[PATCH] powerpc: Suppress 'executable stack' warning at link
trini at konsulko.com
Fri Mar 24 17:05:49 CET 2023
On Fri, Mar 24, 2023 at 02:10:35PM +0100, Christophe Leroy wrote:
> 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 at csgroup.eu>
> Signed-off-by: Christophe Leroy <christophe.leroy at csgroup.eu>
This has been addressed in -next with:
Author: Tom Rini <trini at konsulko.com>
Date: Tue Feb 14 15:09:31 2023 -0500
Makefile: Link with -z noexectack
When moving to gcc-12.2 we started trying to quiet some of the new
linker warnings, that are not relevant to us. However, a
misunderstanding of the mechanics at play meant that I intentionally
omitted passing -z noexecstack to the linker, when we do need to. Add
this flag and in turn remove warnings from the linker.
Fixes: 1e1c51f8ace8 ("Makefile: link with --no-warn-rwx-segments")
Signed-off-by: Tom Rini <trini at konsulko.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
I didn't put this in master as (as far as I know) we're merely telling
the toolchain we're being intentional, and not changing the behavior.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 659 bytes
Desc: not available
More information about the U-Boot