Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/70024 )
Change subject: arch/arm64/Makefile.inc: --no-warn-rwx-segments ......................................................................
arch/arm64/Makefile.inc: --no-warn-rwx-segments
TODO
Change-Id: I56757365559a3f910c59c16df22565d0b9740805 Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/arch/arm64/Makefile.inc 1 file changed, 20 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/70024/1
diff --git a/src/arch/arm64/Makefile.inc b/src/arch/arm64/Makefile.inc index 6b49743..1185577 100644 --- a/src/arch/arm64/Makefile.inc +++ b/src/arch/arm64/Makefile.inc @@ -173,6 +173,14 @@ BL31_CFLAGS := -fno-pic -fno-stack-protector -Wno-deprecated-declarations -Wno-unused-function BL31_LDFLAGS := --emit-relocs
+# With binutils 2.39 it is required to build BL31 with the linker flag +# from below. For backwards compatibility to the current stable +# toolchain (4.18), check if that flag is supported by the linker. +# TODO: Remove the check after 4.19 got released. +ifneq ($(shell "{LD_${TARCH}}" --no-warn-rwx-segments --version >/dev/null 2>&1),) + BL31_LDFLAGS += --no-warn-rwx-segments +endif + BL31 := $(obj)/bl31.elf
$(BL31): $(obj)/build.h