u-boot/arch/riscv
Sam Edwards 214a87757a arm: riscv: efi: Export _start symbol from crt0_*_efi stubs
While the _start label is only intended for use locally to populate the
(hand-written) PE header, the linker script includes ENTRY(_start) which
designates it as the entry point in the output ELF, resulting in linker
warnings under some linkers (e.g. LLVM's lld) due to _start not being a
globally-visible symbol. Since  ELF is only an intermediary build
format, and the aforementioned PE header correctly points to _start, the
ENTRY(_start) directive could easily be removed to silence this warning.

However, since some developers who are debugging EFI by analyzing the
intermediary ELF may appreciate having correct entry-point information,
this patch instead promotes the _start labels to global symbols,
silencing the linker warning and making the intermediary ELF reflect the
true entry point.

This patch doesn't affect the final output binaries in any way.

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
2025-03-17 09:22:03 +01:00
..
cpu riscv: cpu: jh7110: fallback to generic cleanup_before_linux() 2025-02-03 15:26:06 +08:00
dts riscv: dts: binman.dtsi: Include OP-TEE OS image 2025-02-03 15:26:00 +08:00
include/asm riscv: Enhance extension probing 2025-01-16 15:34:18 +08:00
lib arm: riscv: efi: Export _start symbol from crt0_*_efi stubs 2025-03-17 09:22:03 +01:00
config.mk riscv: Support building with Clang 2024-01-31 16:52:36 +08:00
Kconfig riscv: Add CONFIG_SPL_OPTEE_LOAD_ADDR 2025-02-03 15:26:00 +08:00
Makefile global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00