aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/atf/qoriq-atf/tf-a-tests-no-warn-rwx-segments.patch
blob: a88010828f87778f89de3a881087dbd1a328b7fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 9ceeb0cadffee1b1476718795d0568f6b244bf44 Mon Sep 17 00:00:00 2001
From: Jun Zhu <junzhu@nxp.com>
Date: Mon, 31 Oct 2022 21:24:15 +0800
Subject: [PATCH] tf-a-tests-no-warn-rwx-segments

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: Backport [https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/19401]
Signed-off-by: Jun Zhu <junzhu@nxp.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index dccf0121d..0d082344b 100644
--- a/Makefile
+++ b/Makefile
@@ -445,7 +445,7 @@ TF_LDFLAGS		+=	--gc-sections
 # ld.lld doesn't recognize the errata flags,
 # therefore don't add those in that case
 ifeq ($(findstring ld.lld,$(notdir $(LD))),)
-TF_LDFLAGS		+=	$(TF_LDFLAGS_$(ARCH))
+TF_LDFLAGS		+=	$(TF_LDFLAGS_$(ARCH)) --no-warn-rwx-segments
 endif
 endif
 
-- 
2.25.1