libdwarf: make catch type field singly referenced #192
No reviewers
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/artiq-zynq#192
Loading…
Reference in New Issue
No description provided.
Delete Branch "occheung/artiq-zynq:target2-rel"
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?
Description
This PR changes the parsing of the exception type of an exception entry in the
.ARM.extab
section, from doubly referenced to singly referenced.Related PR
ARTIQ PR 1898
Background
Compiler generates a
R_ARM_TARGET2
relocation that points to the exception type for the linker. By default, ld.lld resolvesR_ARM_TARGET2
using "got-prel", whichIt results in exception type being doubly referenced. By specifying the option
--target2=rel
to ld.lld, theR_ARM_TARGET2
relocation is instead resolved as a relative address offset to the exception type. It bypasses the generation of a GOT entry.This PR consist of the changes such that the exception type field is read as a singly referenced value. The change of ld.lld options is in the corresponding patch to mainline ARTIQ.