From 8f7aa292aa3df9b55a1886a94700249eff6d020f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 6 May 2025 13:55:55 +0100 Subject: [PATCH] [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 --- src/arch/riscv/scripts/sbi.lds | 2 ++ 1 file changed, 2 insertions(+) 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 = .; }