diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-07-29 15:44:03 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2024-07-30 11:44:11 +0100 |
commit | 6c180490b0fc8c31209c508bf203dd415bab9a1b (patch) | |
tree | 2f98cfbe713583de09f3a3e84603965c23bdab5c /tests/tcg/riscv64 | |
parent | b86a46980b4bf3291945454cf564adb0f3894b98 (diff) |
tests/tcg: Use --noexecstack with assembler files
Add the --noexecstack assembler command-line option to avoid:
/usr/bin/ld: warning: boot.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
which is enabled by default with current debian cross toolchains.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240724010733.22129-2-richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240729144414.830369-4-alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg/riscv64')
-rw-r--r-- | tests/tcg/riscv64/Makefile.softmmu-target | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcg/riscv64/Makefile.softmmu-target b/tests/tcg/riscv64/Makefile.softmmu-target index d5b126e5f1..7c1d44d3f4 100644 --- a/tests/tcg/riscv64/Makefile.softmmu-target +++ b/tests/tcg/riscv64/Makefile.softmmu-target @@ -10,7 +10,7 @@ LDFLAGS = -T $(LINK_SCRIPT) CFLAGS += -g -Og %.o: %.S - $(CC) $(CFLAGS) $< -c -o $@ + $(CC) $(CFLAGS) $< -Wa,--noexecstack -c -o $@ %: %.o $(LINK_SCRIPT) $(LD) $(LDFLAGS) $< -o $@ |