| From 6635341615a5bcb36ce71479ee30dae1599081e2 Mon Sep 17 00:00:00 2001 |
| From: Anton Antonov <anrton.antonov@arm.com> |
| Date: Wed, 9 Aug 2023 15:56:03 -0400 |
| Subject: [PATCH] Binutils 2.39 now warns when a segment has RXW |
| permissions[1]: |
| |
| aarch64-poky-linux-musl-ld: tftf.elf has a LOAD segment with RWX permissions |
| |
| There is a ticket filed upstream[2], so until that is resolved just |
| disable the warning |
| |
| [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107 |
| [2] https://developer.trustedfirmware.org/T996 |
| |
| Upstream-Status: Inappropriate |
| Signed-off-by: Anton Antonov <anrton.antonov@arm.com> |
| --- |
| Makefile | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/Makefile b/Makefile |
| index 286a47c7d454..3481187b62cf 100644 |
| --- a/Makefile |
| +++ b/Makefile |
| @@ -246,7 +246,7 @@ TFTF_SOURCES := ${FRAMEWORK_SOURCES} ${TESTS_SOURCES} ${PLAT_SOURCES} ${LIBC_SR |
| TFTF_INCLUDES += ${PLAT_INCLUDES} |
| TFTF_CFLAGS += ${COMMON_CFLAGS} |
| TFTF_ASFLAGS += ${COMMON_ASFLAGS} |
| -TFTF_LDFLAGS += ${COMMON_LDFLAGS} |
| +TFTF_LDFLAGS += ${COMMON_LDFLAGS} --no-warn-rwx-segments |
| TFTF_EXTRA_OBJS := |
| |
| ifneq (${BP_OPTION},none) |