Skip to content

Commit

Permalink
linker: riscv: Relocate .eh_frame symbol
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nategraff-sifive authored and galak committed Jul 30, 2018
1 parent aa609fa commit 15516ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/arch/riscv32/common/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ SECTIONS
*(.text)
*(".text.*")
*(.gnu.linkonce.t.*)
*(.eh_frame)
} GROUP_LINK_IN(ROMABLE_REGION)

_image_text_end = .;
Expand Down

0 comments on commit 15516ed

Please sign in to comment.