6c180490b0
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>
25 lines
531 B
Makefile
25 lines
531 B
Makefile
#
|
|
# RISC-V system tests
|
|
#
|
|
|
|
TEST_SRC = $(SRC_PATH)/tests/tcg/riscv64
|
|
VPATH += $(TEST_SRC)
|
|
|
|
LINK_SCRIPT = $(TEST_SRC)/semihost.ld
|
|
LDFLAGS = -T $(LINK_SCRIPT)
|
|
CFLAGS += -g -Og
|
|
|
|
%.o: %.S
|
|
$(CC) $(CFLAGS) $< -Wa,--noexecstack -c -o $@
|
|
%: %.o $(LINK_SCRIPT)
|
|
$(LD) $(LDFLAGS) $< -o $@
|
|
|
|
QEMU_OPTS += -M virt -display none -semihosting -device loader,file=
|
|
|
|
EXTRA_RUNS += run-issue1060
|
|
run-issue1060: issue1060
|
|
$(call run-test, $<, $(QEMU) $(QEMU_OPTS)$<)
|
|
|
|
# We don't currently support the multiarch system tests
|
|
undefine MULTIARCH_TESTS
|