From: Michael Brown Date: Tue, 6 May 2025 12:55:55 +0000 (+0100) Subject: [riscv] Place .got and .got.plt in .data X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f7aa292aa3df9b55a1886a94700249eff6d020f;p=thirdparty%2Fipxe.git [riscv] Place .got and .got.plt in .data 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 --- diff --git a/src/arch/riscv/scripts/sbi.lds b/src/arch/riscv/scripts/sbi.lds index 39ca002e7..21fba5d3d 100644 --- a/src/arch/riscv/scripts/sbi.lds +++ b/src/arch/riscv/scripts/sbi.lds @@ -51,6 +51,8 @@ SECTIONS { KEEP(*(SORT(.tbl.*))) /* Various tables. See include/tables.h */ KEEP(*(.provided)) KEEP(*(.provided.*)) + *(.got) + *(.got.plt) _edata = .; }