Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 1 | Binutils 2.39 now warns when a segment has RXW permissions[1]: |
| 2 | |
| 3 | aarch64-poky-linux-musl-ld: tftf.elf has a LOAD segment with RWX permissions |
| 4 | |
| 5 | There is a ticket filed upstream[2], so until that is resolved just |
| 6 | disable 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 | |
| 11 | Upstream-Status: Inappropriate |
| 12 | Signed-off-by: Anton Antonov <anrton.antonov@arm.com> |
| 13 | |
| 14 | diff --git a/Makefile b/Makefile |
| 15 | index 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) |