From: Michael Brown Date: Tue, 6 May 2025 12:44:44 +0000 (+0100) Subject: [riscv] Discard ELF hash tables X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e37e3f17e5bc4ee9f63ff45c8782dbec29eccc6b;p=thirdparty%2Fipxe.git [riscv] Discard ELF hash tables 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 --- diff --git a/src/arch/riscv/scripts/sbi.lds b/src/arch/riscv/scripts/sbi.lds index f882f235e..39ca002e7 100644 --- a/src/arch/riscv/scripts/sbi.lds +++ b/src/arch/riscv/scripts/sbi.lds @@ -117,6 +117,8 @@ SECTIONS { *(.dynamic) *(.dynsym) *(.dynstr) + *(.hash) + *(.gnu.hash) *(.einfo) *(.einfo.*) *(.discard)