Files
u-boot/arch/arm/lib/elf_aarch64_efi.lds
Heinrich Schuchardt 507a37fabe efi_loader: use INCLUDE in EFI linker scripts
Except for the architecture specific lines ARM and RISC-V can use the same
linker script. Move the common lines to an include.

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
(cherry picked from commit 6a628c1503)

Changes from original cherry-pick:
 - Add -L $(srctree) to Makefile u-boot link commands for out-of-tree
   builds
 - Create arch/arm/lib/elf_aarch64_efi_app.lds for full U-Boot EFI app
   with different structure (.hash/.gnu.hash at start, no PHDRS block)
 - Update board/efi/efi-arm_app/Kconfig to use the app-specific linker
   script
 - Simple EFI apps (helloworld.efi) use lib/efi_loader/elf_efi.ldsi with
   PHDRS block
Signed-off-by: Simon Glass <simon.glass@canonical.com>
2025-12-25 20:50:09 -07:00

12 lines
280 B
Plaintext

/* SPDX-License-Identifier: BSD-2-Clause */
/*
* U-Boot aarch64 EFI linker script
*
* Modified from elf_aarch64_efi.lds in gnu-efi
*/
OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64")
OUTPUT_ARCH(aarch64)
INCLUDE lib/efi_loader/elf_efi.ldsi