diff --git a/Cargo.toml b/Cargo.toml index 6067e00..3dcbdc2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "riscv-rt" -version = "0.6.1" +version = "0.6.2" repository = "https://github.com/rust-embedded/riscv-rt" authors = ["The RISC-V Team "] categories = ["embedded", "no-std"] diff --git a/link.x b/link.x index ae4e7a8..47b22d7 100644 --- a/link.x +++ b/link.x @@ -43,6 +43,7 @@ SECTIONS .rodata : ALIGN(4) { + *(.srodata .srodata.*); *(.rodata .rodata.*); /* 4-byte align the end (VMA) of this section. @@ -97,11 +98,8 @@ SECTIONS KEEP(*(.got .got.*)); } - /* Discard .eh_frame, we are not doing unwind on panic so it is not needed */ - /DISCARD/ : - { - *(.eh_frame); - } + .eh_frame (INFO) : { KEEP(*(.eh_frame)) } + .eh_frame_hdr (INFO) : { *(.eh_frame_hdr) } } /* Do not exceed this mark in the error messages above | */