mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-15 19:31:32 +00:00
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 <leon@georgemail.eu> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
d1dad07cb8
commit
92e8affb31
1 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,11 @@
|
|||
. = ALIGN(8);
|
||||
}
|
||||
|
||||
.dynsym :
|
||||
{
|
||||
*(.dynsym)
|
||||
}
|
||||
|
||||
. = ALIGN(0x1000); /* Ensure next section is page aligned */
|
||||
|
||||
.rela.dyn : {
|
||||
|
|
Loading…
Add table
Reference in a new issue