mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 18:30: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)
|
*(.dynamic)
|
||||||
*(.dynsym)
|
*(.dynsym)
|
||||||
*(.dynstr)
|
*(.dynstr)
|
||||||
|
*(.hash)
|
||||||
|
*(.gnu.hash)
|
||||||
*(.einfo)
|
*(.einfo)
|
||||||
*(.einfo.*)
|
*(.einfo.*)
|
||||||
*(.discard)
|
*(.discard)
|
||||||
|
|||||||
Reference in New Issue
Block a user