580731dcc8
A build of GCC 13.2 will have stack protector enabled by default if it was configured with --enable-default-ssp option. For such a compiler, it is necessary to explicitly disable stack protector when linking without standard libraries. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-Id: <20230731091042.139159-3-akihiko.odaki@daynix.com> [AJB: fix comment string typo] Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231029145033.592566-3-alex.bennee@linaro.org>
20 lines
399 B
Makefile
20 lines
399 B
Makefile
# -*- Mode: makefile -*-
|
|
#
|
|
# MIPS - included from tests/tcg/Makefile.target
|
|
#
|
|
|
|
MIPS_SRC=$(SRC_PATH)/tests/tcg/mips
|
|
|
|
# Set search path for all sources
|
|
VPATH += $(MIPS_SRC)
|
|
|
|
# hello-mips is 32 bit only
|
|
ifeq ($(findstring 64,$(TARGET_NAME)),)
|
|
MIPS_TESTS=hello-mips
|
|
|
|
TESTS += $(MIPS_TESTS)
|
|
|
|
hello-mips: CFLAGS+=-mno-abicalls -fno-PIC -fno-stack-protector -mabi=32
|
|
hello-mips: LDFLAGS+=-nostdlib
|
|
endif
|