mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-01 13:10:04 +00:00
arm/tf-a-tests: work around RWX permission error on segment
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 - NOTE: recipe tf-a-tests-2.7.0-r0: task do_compile: Failed There is a ticket filed upstream[2], so until that is resolved we can disable this warning. Also let's move a similar tf-a patch from trusted-firmware-a.inc to trusted-firmware-a_2.7.0.bb as the patch is for tf-a version 2.7.0 only [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107 [2] https://developer.trustedfirmware.org/T996 Signed-off-by: Anton Antonov <Anton.Antonov@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
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>
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 6d0774e1..be3f84ce 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -238,7 +238,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)
|
||||||
@@ -7,7 +7,8 @@ inherit deploy
|
|||||||
|
|
||||||
COMPATIBLE_MACHINE ?= "invalid"
|
COMPATIBLE_MACHINE ?= "invalid"
|
||||||
|
|
||||||
SRC_URI = "git://git.trustedfirmware.org/TF-A/tf-a-tests.git;protocol=https;branch=master"
|
SRC_URI = "git://git.trustedfirmware.org/TF-A/tf-a-tests.git;protocol=https;branch=master \
|
||||||
|
file://tf-a-tests-no-warn-rwx-segments.patch"
|
||||||
SRCREV ?= "5f591f67738a1bbe6b262c53d9dad46ed8bbcd67"
|
SRCREV ?= "5f591f67738a1bbe6b262c53d9dad46ed8bbcd67"
|
||||||
|
|
||||||
DEPENDS += "optee-os"
|
DEPENDS += "optee-os"
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|||||||
|
|
||||||
inherit deploy
|
inherit deploy
|
||||||
|
|
||||||
SRC_URI = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=https;name=tfa;branch=master \
|
SRC_URI = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=https;name=tfa;branch=master"
|
||||||
file://rwx-segments.patch"
|
|
||||||
|
|
||||||
UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
|
UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ require trusted-firmware-a.inc
|
|||||||
# TF-A v2.7
|
# TF-A v2.7
|
||||||
SRCREV_tfa = "35f4c7295bafeb32c8bcbdfb6a3f2e74a57e732b"
|
SRCREV_tfa = "35f4c7295bafeb32c8bcbdfb6a3f2e74a57e732b"
|
||||||
|
|
||||||
|
SRC_URI += "file://rwx-segments.patch"
|
||||||
|
|
||||||
LIC_FILES_CHKSUM += "file://docs/license.rst;md5=b2c740efedc159745b9b31f88ff03dde"
|
LIC_FILES_CHKSUM += "file://docs/license.rst;md5=b2c740efedc159745b9b31f88ff03dde"
|
||||||
|
|
||||||
# mbed TLS v2.28.0
|
# mbed TLS v2.28.0
|
||||||
|
|||||||
Reference in New Issue
Block a user