Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Merge #62
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bors[bot] and Disasm authored Jul 15, 2020
2 parents 93a55a2 + 9dd5f79 commit fb76ec7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Changed

- Preserve `.eh_frame` and `.eh_frame_hdr` sections

## [v0.7.1] - 2020-06-02

### Added
Expand Down
7 changes: 2 additions & 5 deletions link.x
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,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 | */
Expand Down

0 comments on commit fb76ec7

Please sign in to comment.