]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[riscv] Discard ELF hash tables
authorMichael Brown <mcb30@ipxe.org>
Tue, 6 May 2025 12:44:44 +0000 (13:44 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 6 May 2025 12:44:44 +0000 (13:44 +0100)
The ELF hash table is generated when building a position-independent
executable even though it is not required (since we have no dynamic
linker).

Explicitly discard these unneeded sections.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/scripts/sbi.lds

index f882f235ea94973b7ffbd305bce0b2a6456a06b8..39ca002e79b25926c72151b61cbd6bfb9a57293e 100644 (file)
@@ -117,6 +117,8 @@ SECTIONS {
        *(.dynamic)
        *(.dynsym)
        *(.dynstr)
+       *(.hash)
+       *(.gnu.hash)
        *(.einfo)
        *(.einfo.*)
        *(.discard)