Home
last modified time | relevance | path

Searched hist:a67ac7648cd814ed8f8d4ece1b265c6d48c6dc81 (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/plat/arm/board/arm_fpga/
H A Dbuild_axf.ld.Sa67ac7648cd814ed8f8d4ece1b265c6d48c6dc81 Thu Nov 04 13:47:17 UTC 2021 Andre Przywara <andre.przywara@arm.com> fix(arm_fpga): avoid re-linking from executable ELF file

When we build the convenience firmware package file for the Arm FPGA
boards (bl31.axf), we combine trampolines, the DTB and the actual BL31
code into one ELF file, which is more a "container with load addresses"
than an actual executable. So far ld was fine with us using bl31.elf as
an input file, but binutils 2.35 changed that and complains about
taking an *executable* ELF file as in *input* to the linker:
-----------------
aarch64-none-elf-ld.bfd: cannot use executable file 'build/arm_fpga/debug/./bl31/bl31.elf' as input to a link
-----------------

Fortunately we don't need the actual BL31 ELF file for *that* part of
the linking, so can use the just created bl31.bin binary version of it.
Actually that shrinks the file, as we needlessly included the .BSS
section in the final file before.

Using the binary works with both older and newer toolchains versions, so
let's do this unconditionally.

Change-Id: Ib7e697f8363499123f7cb860f118f182d0830768
Signed-off-by: Andre Przywara <andre.przywara@arm.com>