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

Preserve .eh_frame and .eh_frame_hdr #62

Merged
merged 2 commits into from
Jul 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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