[PATCH 3/7] Makefile.lib: Preserve .rodata section for EFI file
Jiaxun Yang
jiaxun.yang at flygoat.com
Tue Jun 11 16:30:32 CEST 2024
在2024年6月11日六月 下午3:28,Heinrich Schuchardt写道:
[...]
>
> We have:
>
> arch/arm/lib/elf_aarch64_efi.lds:26: *(.rodata*)
> arch/arm/lib/elf_arm_efi.lds:26: *(.rodata*)
> arch/riscv/lib/elf_riscv32_efi.lds:26: *(.rodata*)
> arch/riscv/lib/elf_riscv64_efi.lds:26: *(.rodata*)
> arch/x86/lib/elf_ia32_efi.lds:35: *(.rodata*)
> arch/x86/lib/elf_x86_64_efi.lds:37: *(.rodata*)
>
> Not considering .rodata in objcopy looks inconsistent.
>
> As we use -fdata-sections wouldn't we expect a .rodata* section per
> function with constants on LoongArch? Shouldn't we use:
>
> + .dynamic -j .dynsym -j .rel* -j .rela* -j .reloc -j .rodata* \
That makes sense, will take in next version.
Thanks
>
> Best regards
>
> Heinrich
--
- Jiaxun
More information about the U-Boot
mailing list