blob: 5d02e353170ab3c47681f0509b602cb9ec77c067 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001Binutils 2.39 now warns when a segment has RXW permissions[1]:
2
3aarch64-poky-linux-musl-ld: tftf.elf has a LOAD segment with RWX permissions
4
5There is a ticket filed upstream[2], so until that is resolved just
6disable the warning
7
8[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107
9[2] https://developer.trustedfirmware.org/T996
10
11Upstream-Status: Inappropriate
12Signed-off-by: Anton Antonov <anrton.antonov@arm.com>
13
14diff --git a/Makefile b/Makefile
15index 6d0774e1..be3f84ce 100644
16--- a/Makefile
17+++ b/Makefile
18@@ -238,7 +238,7 @@ TFTF_SOURCES := ${FRAMEWORK_SOURCES} ${TESTS_SOURCES} ${PLAT_SOURCES} ${LIBC_SR
19 TFTF_INCLUDES += ${PLAT_INCLUDES}
20 TFTF_CFLAGS += ${COMMON_CFLAGS}
21 TFTF_ASFLAGS += ${COMMON_ASFLAGS}
22-TFTF_LDFLAGS += ${COMMON_LDFLAGS}
23+TFTF_LDFLAGS += ${COMMON_LDFLAGS} --no-warn-rwx-segments
24 TFTF_EXTRA_OBJS :=
25
26 ifneq (${BP_OPTION},none)