1
0
Fork 0
mirror of https://github.com/u-boot/u-boot.git synced 2025-04-26 15:28:50 +00:00
u-boot/arch/riscv/lib
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
..
aclint_ipi.c riscv: Remove common.h usage 2023-10-24 16:34:45 -04:00
andes_plicsw.c riscv: andes: Fix enable register settings of PLICSW 2023-12-06 16:05:39 +08:00
asm-offsets.c riscv: Remove common.h usage 2023-10-24 16:34:45 -04:00
bdinfo.c riscv: add RISC-V fields to bdinfo command 2024-07-22 11:15:11 +08:00
boot.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
bootm.c dm: Add dm_remove_devices_active() for ordered device removal 2024-11-24 15:41:28 -06:00
cache.c riscv: Fallback to riscv,isa 2025-01-16 15:34:18 +08:00
crt0_riscv_efi.S arm: riscv: efi: Export _start symbol from crt0_*_efi stubs 2025-03-17 09:22:03 +01:00
elf_riscv32_efi.lds efi_loader: use INCLUDE in EFI linker scripts 2025-01-17 20:31:26 +01:00
elf_riscv64_efi.lds efi_loader: use INCLUDE in EFI linker scripts 2025-01-17 20:31:26 +01:00
fdt_fixup.c riscv: add missing linefeed in error message 2024-10-28 16:11:33 +08:00
image.c riscv: Remove common.h usage 2023-10-24 16:34:45 -04:00
interrupts.c riscv: resume needs to be a global 2024-10-29 19:58:14 +08:00
Makefile Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
memcpy.S riscv: memcpy: check src and dst before copy 2023-02-01 16:17:45 +08:00
memmove.S riscv: Fix memmove and optimise memcpy when misalign 2021-05-17 16:47:33 +08:00
memset.S riscv: assembler versions of memcpy, memmove, memset 2021-04-08 15:37:29 +08:00
reloc_riscv_efi.c riscv: Remove unused _relocate arguments 2018-07-19 16:31:37 -04:00
reset.c riscv: Add a reset_cpu() function 2023-12-21 16:07:52 -05:00
sbi.c riscv: Remove common.h usage 2023-10-24 16:34:45 -04:00
sbi_ipi.c riscv: Remove common.h usage 2023-10-24 16:34:45 -04:00
semihosting.S riscv: semihosting: correct alignment 2024-07-22 11:15:11 +08:00
setjmp.S riscv: simplify longjmp 2021-04-08 15:37:29 +08:00
sifive_cache.c arch: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:47 -06:00
smp.c riscv: Remove common.h usage 2023-10-24 16:34:45 -04:00
spl.c riscv: Remove common.h usage 2023-10-24 16:34:45 -04:00
strcmp_zbb.S riscv: Add Zbb support for building U-Boot 2023-10-19 17:29:50 +08:00
strlen_zbb.S riscv: Add Zbb support for building U-Boot 2023-10-19 17:29:50 +08:00
strncmp_zbb.S riscv: Add Zbb support for building U-Boot 2023-10-19 17:29:50 +08:00