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
No description provided.
Delete Branch "fix/ld-remap-multiple-cie"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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.