[PATCH] D31663: [LLD][ELF] Account for range thunk that has drifted out of range

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 04:34:56 PDT 2017


peter.smith created this revision.

Adding range extension thunks to an OutputSection alters some InputSection VAs, including the VAs of the thunks themselves. In rare cases a call to a thunk that was valid on pass N, is not valid in some later pass N + K. We account for this by detecting if a caller can't reach the thunk, reseting the relocation to the original and recreating the Thunk.


https://reviews.llvm.org/D31663

Files:
  ELF/Relocations.cpp
  ELF/Relocations.h
  ELF/Thunks.cpp
  ELF/Thunks.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31663.94045.patch
Type: text/x-patch
Size: 6300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170404/446e7d79/attachment.bin>


More information about the llvm-commits mailing list