[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 <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-05-06 13:44:44 +01:00
parent 70bb5e5e63
commit e37e3f17e5

View File

@@ -117,6 +117,8 @@ SECTIONS {
*(.dynamic)
*(.dynsym)
*(.dynstr)
*(.hash)
*(.gnu.hash)
*(.einfo)
*(.einfo.*)
*(.discard)