[PATCH] D124653: [ELF] Fix branch range computation when picking ThunkSection
Peter Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 05:42:10 PDT 2022
peter.smith accepted this revision.
peter.smith added a comment.
This revision is now accepted and ready to land.
Looks good to me.
IIUC the problem case is triggered by relocations with addends. Something like:
- ThunkSection selected which is in range of the branch, but not branch + offset.
- Later code identifies the thunk is out of branch range which removes the thunk from the branch
- Branch chooses the same thunk section as before.
- Repeat, until error message.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124653/new/
https://reviews.llvm.org/D124653
More information about the llvm-commits
mailing list