Skip to content

Commit 4b09142

Browse files
committed
recore: fix ATF v2.8.0 build - drop -Wl, prefix from LD flag
recore pins ATF v2.8.0, whose Makefile passes TF_LDFLAGS directly to ld.bfd rather than through gcc. The framework's default '-Wl,--no-warn-rwx-segment' is therefore rejected by the linker: ld.bfd: unrecognized option '-Wl,--no-warn-rwx-segment' Set ATF_SKIP_LDFLAGS_WL=yes so the bare --no-warn-rwx-segment is passed instead (ld.bfd accepts it as an abbreviation of --no-warn-rwx-segments). The flag itself is retained to suppress the binutils 2.39+ RWX-segment warning. Same knob already used by genio/imx93/phytiumpi/nuvoton. Signed-off-by: Igor Pecovnik <igor@armbian.com>
1 parent 54e6189 commit 4b09142

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

config/boards/recore.csc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ function post_family_config__shrink_atf() {
1414
display_alert "Choose ATF branch 🍰" "recore"
1515
declare -g ATFBRANCH="tag:v2.8.0"
1616

17+
# ATF v2.8.0 passes TF_LDFLAGS directly to the linker (ld.bfd), not to gcc,
18+
# so the '-Wl,' prefix on --no-warn-rwx-segment is rejected. Drop the prefix.
19+
declare -g ATF_SKIP_LDFLAGS_WL="yes"
20+
1721
declare -g ATF_TARGET_MAP="PLAT=$ATF_PLAT DEBUG=0 SUNXI_PSCI_USE_SCPI=0 bl31;;build/$ATF_PLAT/release/bl31.bin"
1822
display_alert "Compile without SCP binary 🍰" "recore"
1923
UBOOT_TARGET_MAP="SCP=/dev/null;;u-boot-sunxi-with-spl.bin"

0 commit comments

Comments
 (0)