]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[riscv] Place .got and .got.plt in .data
authorMichael Brown <mcb30@ipxe.org>
Tue, 6 May 2025 12:55:55 +0000 (13:55 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 6 May 2025 12:58:38 +0000 (13:58 +0100)
Even though we build with -mno-plt, redundant .got and .got.plt
sections are still generated.

Include these redundant sections within .data (which has identical
section attributes) to simplify the section list.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/scripts/sbi.lds

index 39ca002e79b25926c72151b61cbd6bfb9a57293e..21fba5d3da13f2dc0f6a4c4d0182e84f98160257 100644 (file)
@@ -51,6 +51,8 @@ SECTIONS {
        KEEP(*(SORT(.tbl.*)))   /* Various tables.  See include/tables.h */
        KEEP(*(.provided))
        KEEP(*(.provided.*))
+       *(.got)
+       *(.got.plt)
        _edata = .;
     }