more generic tiny.ld

This commit is contained in:
veclavtlica
2026-10-07 11:26:22 +03:00
parent 8d502173a2
commit 1e200cc7f2
+5 -15
View File
@@ -1,5 +1,3 @@
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
OUTPUT_ARCH(i386:x86-64)
ENTRY(_start)
PHDRS
@@ -24,6 +22,10 @@ SECTIONS
*(.data*)
}
.shstrtab : {
*(.shstrtab*)
}
.bss : {
*(.bss*)
*(COMMON)
@@ -31,18 +33,6 @@ SECTIONS
/* Discard bloat and unnecessary ELF sections */
/DISCARD/ : {
*(.note.GNU-stack)
*(.gnu_debuglink)
*(.gnu.lto_*)
*(.note.gnu.build-id)
*(.eh_frame_hdr)
*(.eh_frame_entry)
*(.eh_frame)
*(.comment)
*(.interp)
*(.dynsym)
*(.dynstr)
*(.hash)
*(.gnu.hash)
*(*)
}
}