aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-12-13 20:11:24 -0800
committerFangrui Song <i@maskray.me>2021-12-13 20:11:24 -0800
commite7a95b067490dc90faea1baa78a66d08e1b2a7d4 (patch)
treebfaf76d80f02043775d11f1de22f010ab1dc463c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentd1014d9e6d98c11356861d69199d7bacab45e609 (diff)
downloadllvm-e7a95b067490dc90faea1baa78a66d08e1b2a7d4.zip
llvm-e7a95b067490dc90faea1baa78a66d08e1b2a7d4.tar.gz
llvm-e7a95b067490dc90faea1baa78a66d08e1b2a7d4.tar.bz2
Reland [ELF] Split scanRelocations into scanRelocations/postScanRelocations
(Fixed an issue about GOT on a copy relocated alias.) The idea is to make scanRelocations mark some actions are needed (GOT/PLT/etc) and postpone the real work to postScanRelocations. It gives some flexibility: * Make it feasible to support .plt.got (PR32938): we need to know whether GLOB_DAT and JUMP_SLOT are both needed. * Make non-preemptible IFUNC handling slightly cleaner: avoid setting/clearing sym.gotInIgot * -z nocopyrel: report all copy relocation places for one symbol * Make GOT deduplication feasible * Make parallel relocation scanning feasible (if we can avoid all stateful operations and make Symbol attributes atomic), but parallelism may not be the appealing choice Since this patch moves a large chunk of code out of ELFT templates. My x86-64 executable is actually a few hundred bytes smaller. For ppc32-ifunc-nonpreemptible-pic.s: I remove absolute relocation references to non-preemptible ifunc because absolute relocation references are incorrect in -fpie mode. Reviewed By: peter.smith, ikudrin Differential Revision: https://reviews.llvm.org/D114783
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions