diff options
author | Tom Rini <trini@konsulko.com> | 2023-02-14 12:10:29 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-14 14:10:56 -0500 |
commit | 16728f40293861567642fe8df9bf067b50338e99 (patch) | |
tree | 39c10fc07f0e4752302e9d1b99fa81b86c73fb81 | |
parent | faac9dee8e0629326dc122f4624fc4897e3f38b0 (diff) | |
download | u-boot-WIP/drop-gnu.STACK-v2.zip u-boot-WIP/drop-gnu.STACK-v2.tar.gz u-boot-WIP/drop-gnu.STACK-v2.tar.bz2 |
Makefile: Link with -z noexectackWIP/drop-gnu.STACK-v2
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@konsulko.com>
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -806,6 +806,7 @@ KBUILD_CPPFLAGS += $(KCPPFLAGS) KBUILD_AFLAGS += $(KAFLAGS) KBUILD_CFLAGS += $(KCFLAGS) +KBUILD_LDFLAGS += -z noexecstack KBUILD_LDFLAGS += $(call ld-option,--no-warn-rwx-segments) KBUILD_HOSTCFLAGS += $(if $(CONFIG_TOOLS_DEBUG),-g) |