diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2023-02-21 07:50:47 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-02-21 08:44:08 +0100 |
commit | 4e8713dd6e89f68cb649be94b7796bdd8e7b0be4 (patch) | |
tree | 719ecd42c59d326245d2cfdf850f373cf0047cf2 /arch/sandbox | |
parent | 49a3d85864b7d4ed976b8b350c487dc3f942a513 (diff) | |
download | barebox-4e8713dd6e89f68cb649be94b7796bdd8e7b0be4.tar.gz barebox-4e8713dd6e89f68cb649be94b7796bdd8e7b0be4.tar.xz |
sandbox: fix linker warnings with newer ld
Building with a newer ld results in two warnings:
binutils-2.39/bin/ld: warning: defaultenv/defaultenv-2-reboot-mode.bbenv.gz.o:
missing .note.GNU-stack section implies executable stack
binutils-2.39/bin/ld: NOTE: This behaviour is deprecated and will be removed
in a future version of the linker
binutils-2.39/bin/ld: warning: barebox has a LOAD segment with RWX permissions
This is already fixed for the non-sandbox platform with a4b49c69c3ad
("Kbuild: link with -z noexecstack and --no-warn-rwx-segments"), but
sandbox has its own cmd_barebox__, so add the equivalent to the sandbox
Makefile as well.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Link: https://lore.barebox.org/20230221065047.1114231-1-ahmad@a3f.at
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index d5ba05ba86..0f59e79e13 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -69,6 +69,7 @@ BAREBOX_LDFLAGS += \ -Wl,-T,$(BAREBOX_LDS) \ -Wl,--whole-archive $(BAREBOX_OBJS) -Wl,--no-whole-archive \ -lrt -pthread $(SDL_LIBS) $(FTDI1_LIBS) \ + -Wl,-z noexecstack $(call cc-option,-Wl$(comma)--no-warn-rwx-segments) \ $(SANITIZER_LIBS) cmd_barebox__ = $(CC) -o $@ $(BAREBOX_LDFLAGS) |