In the ELF linker, the same situation already errors out with "relocation R_ARM_THM_CALL out of range".
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM
COFF/Chunks.cpp | ||
---|---|---|
119–120 | This does not depend on none of S, J1 nor J2, so please move this to the beginning of this function. |
COFF/Chunks.cpp | ||
---|---|---|
119–120 | Ok, moving it up |
Comment Actions
Moved the check up in the function as requested, added a test based on ELF/arm-thumb-branch-error.s.
Comment Actions
Can someone commit this one, now that it has no objections and a bunch of approvals? I don't have commit access.
(The diff is generated on top of some of the other patches touching code close by, but they shouldn't directly conflict.)
This does not depend on none of S, J1 nor J2, so please move this to the beginning of this function.