linker: riscv: Relocate .eh_frame symbol
The .eh_frame symbol was causing __data_rom_start to contain the wrong offset into the ROM, resulting in corrupt data copied into RAM by _data_copy(). Fix by placing the .eh_frame in the .text section as is done in include/arch/x86/linker.ld Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
This commit is contained in:
parent
aa609faab3
commit
15516ed0ef
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ SECTIONS
|
||||||
*(.text)
|
*(.text)
|
||||||
*(".text.*")
|
*(".text.*")
|
||||||
*(.gnu.linkonce.t.*)
|
*(.gnu.linkonce.t.*)
|
||||||
|
*(.eh_frame)
|
||||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||||
|
|
||||||
_image_text_end = .;
|
_image_text_end = .;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue