mirror of
https://github.com/ipxe/ipxe
synced 2025-12-07 01:40:28 +03:00
[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:
@@ -117,6 +117,8 @@ SECTIONS {
|
||||
*(.dynamic)
|
||||
*(.dynsym)
|
||||
*(.dynstr)
|
||||
*(.hash)
|
||||
*(.gnu.hash)
|
||||
*(.einfo)
|
||||
*(.einfo.*)
|
||||
*(.discard)
|
||||
|
||||
Reference in New Issue
Block a user