[openwrt/openwrt] trusted-firmware-a.mk: fix build with binutils 2.39

LEDE Commits lede-commits at lists.infradead.org
Mon Dec 5 15:15:11 PST 2022


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0579d9f5bc4b3a3d1b32526c71a6b77c4888bfcb

commit 0579d9f5bc4b3a3d1b32526c71a6b77c4888bfcb
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Fri Dec 2 12:54:52 2022 +0000

    trusted-firmware-a.mk: fix build with binutils 2.39
    
    Starting from version 2.39 binutils now warns about sections with rwx
    permissions. While this is generally desirable it breaks building
    ARM TrustedFirmware-A bl2 which treats warnings as errors.
    Disable the warning/error for now to fix build.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 include/trusted-firmware-a.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/trusted-firmware-a.mk b/include/trusted-firmware-a.mk
index 46fc52b15e..0b37c0f943 100644
--- a/include/trusted-firmware-a.mk
+++ b/include/trusted-firmware-a.mk
@@ -81,6 +81,7 @@ define Build/Compile/Trusted-Firmware-A
 		$(if $(DTC),DTC="$(DTC)") \
 		PLAT=$(PLAT) \
 		BUILD_STRING="OpenWrt v$(PKG_VERSION)-$(PKG_RELEASE) ($(VARIANT))" \
+		$(if $(CONFIG_BINUTILS_VERSION_2_39),LDFLAGS="-no-warn-rwx-segments") \
 		$(TFA_MAKE_FLAGS)
 endef
 




More information about the lede-commits mailing list