Open yogo1212 opened 9 months ago
Without the --exclude-libs
, there's a failure linking fw_dynamic.elf
:
/usr/lib/gcc/riscv64-elf/12.2.0/../../../../riscv64-elf/bin/ld.bfd:/home/leon/git/arch-star64-img/build/opensbi/build/platform/generic/firmware/fw_dynamic.elf.ld:54: undefined section `.dynsym' referenced in expression
Simply removing SIZEOF(.dynsym)
from the sum in the linker script re-enables the build.
Am I confident in the resulting image? :shrug:
If there are exported symbols, there's no need for a dynsym
section, or am I wrong?
I'll create a PR discarding the section.
Is this because the toolchain is for bare-metal? Should the toolchain be checked before
--exclude-libs
is added toELFFLAGS
?