summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon M. Busch-George <[email protected]>2024-01-26 16:21:25 +0100
committerAnup Patel <[email protected]>2024-02-05 16:34:44 +0530
commit92e8affb31b21ddc5d1193cf754ce644db7b460a (patch)
treeb922776a19e6b7c4863d18d8c07d81855386056a
parentd1dad07cb88fbf601556b4df8ef2bac70fed7143 (diff)
firmware: always create dynsym section
With a bare-metal linkers (e.g. riscv64-elf-ld), there exists no dynsym section. The dynsym section is not used by OpenSBI but discarding it makes linkers with dynamic library support unhappy. Signed-off-by: Leon M. Busch-George <[email protected]> Reviewed-by: Anup Patel <[email protected]>
-rw-r--r--firmware/fw_base.ldS5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/fw_base.ldS b/firmware/fw_base.ldS
index c15ccdbf..fb479848 100644
--- a/firmware/fw_base.ldS
+++ b/firmware/fw_base.ldS
@@ -38,6 +38,11 @@
. = ALIGN(8);
}
+ .dynsym :
+ {
+ *(.dynsym)
+ }
+
. = ALIGN(0x1000); /* Ensure next section is page aligned */
.rela.dyn : {