Skip to content

Commit db65c40

Browse files
bors[bot]Disasm
andauthored
Merge #62
62: Preserve .eh_frame and .eh_frame_hdr r=almindor a=Disasm Preserving the `.eh_frame` section improves gdb stack traces on nightly. Preserving the `.eh_frame_hdr` section fixes the linker problem `rust-lld: error: no memory region specified for section '.eh_frame_hdr'` introduced in rust-lang/rust#73564 Co-authored-by: Vadim Kaushan <admin@disasm.info>
2 parents 9f1892e + 48d45c3 commit db65c40

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

riscv-rt/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Preserve `.eh_frame` and `.eh_frame_hdr` sections
13+
1014
## [v0.7.1] - 2020-06-02
1115

1216
### Added

riscv-rt/link.x

+2-5
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,8 @@ SECTIONS
111111
KEEP(*(.got .got.*));
112112
}
113113

114-
/* Discard .eh_frame, we are not doing unwind on panic so it is not needed */
115-
/DISCARD/ :
116-
{
117-
*(.eh_frame);
118-
}
114+
.eh_frame (INFO) : { KEEP(*(.eh_frame)) }
115+
.eh_frame_hdr (INFO) : { *(.eh_frame_hdr) }
119116
}
120117

121118
/* Do not exceed this mark in the error messages above | */

0 commit comments

Comments
 (0)