[PATCH] D34034: [LLD][ELF] Make createThunks() iterate until no more thunks added

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 8 07:06:28 PDT 2017


peter.smith created this revision.
Herald added a subscriber: emaste.

In preparation for supporting range extension thunks we now continually call createThunks() until no more thunks are added. This requires us to record
the thunks we add on each pass and only merge the new ones into the OutputSection. We also need to check if a Relocation is targeting a thunk to prevent us from infinitely creating more thunks.

      

With the currently supported thunks we allocate all the thunks on the first pass, the second pass will not result in any more thunks.


https://reviews.llvm.org/D34034

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34034.101907.patch
Type: text/x-patch
Size: 5683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170608/d86d69b9/attachment.bin>


More information about the llvm-commits mailing list