diff options
author | Peter Smith <peter.smith@linaro.org> | 2017-01-18 09:57:14 +0000 |
---|---|---|
committer | Peter Smith <peter.smith@linaro.org> | 2017-01-18 09:57:14 +0000 |
commit | ee6d7186c3c7b154cce0c3cfb5e234db8de5c277 (patch) | |
tree | 87fd4eaf9156b1e7afa8a32618faef0296864b5d /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 0c0240ce849076009e38fd29b8c42fb27b451db4 (diff) | |
download | llvm-ee6d7186c3c7b154cce0c3cfb5e234db8de5c277.zip llvm-ee6d7186c3c7b154cce0c3cfb5e234db8de5c277.tar.gz llvm-ee6d7186c3c7b154cce0c3cfb5e234db8de5c277.tar.bz2 |
[ELF] Move createThunks() after scanRelocations()
A necessary first step towards range extension thunks is to delay
the creation of thunks until the layout of InputSections within
OutputSections has been done.
The change scans the relocations directly from InputSections rather
than looking in the ELF File the InputSection came from. This will
allow a future change to redirect the relocations to symbols defined
by Thunks rather than indirect when resolving relocations.
A side-effect of moving ThunkCreation is that the OutSecOff of
InputSections may change in an OutputSection that contains Thunks.
In well behaved programs thunks are not in OutputSections with
dynamic relocations.
Differential Revision: https://reviews.llvm.org/D28811
llvm-svn: 292359
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions