ld: Fix remapping of FDEs with multiple CFIs #343
No reviewers
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#343
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "fix/ld-remap-multiple-cie"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
The previous implementation assumes that each
.eh_frame
section will only contain one CFI (and hence one CIE) record, but this is shown not to hold when compiling with no optimizations.This PR fixes that by refactoring the parsing and handling of records in the
.eh_frame
section, such that multiple CFIs within.eh_frame
is properly handled. This PR also refactors the reading of CFI/CIE/FDE into a hierarchical manner.