Skip to content

Commit

Permalink
arm-trusted-firmware: Workaround for latest binutils
Browse files Browse the repository at this point in the history
Current binutils adds a warning:

  bl31.elf has a LOAD segment with RWX permissions

--fatal-warnings is enabled when linking, so this triggers a link failure.

Workaround this with --no-warn-rwx-segments.

Signed-off-by: Mark Hatle <[email protected]>
  • Loading branch information
mhatle committed Sep 1, 2022
1 parent 940e4d9 commit 22bdaf7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ EXTRA_OEMAKE:append:versal = "${@' VERSAL_ATF_MEM_SIZE=${ATF_MEM_SIZE}' if d.get
ATF_PROVENCORE = "SPD=pncd SPD_PNCD_NS_IRQ=51 ZYNQMP_BL32_MEM_BASE=0x70000000 ZYNQMP_BL32_MEM_SIZE=0x0FF00000"
EXTRA_OEMAKE:append = "${@bb.utils.contains('MACHINE_FEATURES', 'provencore', ' ${ATF_PROVENCORE}', '', d)}"

# Workaround for bl31.elf has a LOAD segment with RWX permissions
EXTRA_OEMAKE:append = ' TF_LDFLAGS="--no-warn-rwx-segments --fatal-warnings -O1 --gc-sections"'

do_configure() {
oe_runmake clean -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM}
}

do_compile() {
oe_runmake -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM} RESET_TO_BL31=1 bl31
oe_runmake -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM} RESET_TO_BL31=1 bl31 V=1
}

do_install() {
Expand Down

0 comments on commit 22bdaf7

Please sign in to comment.