aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-12-13 09:56:51 -0800
committerFangrui Song <i@maskray.me>2021-12-13 09:56:52 -0800
commitfc33861d48a95aa4682ce3b6e44732e5c8bbd092 (patch)
tree17fd2727ea14493b1f7e212a6bcb6fa5d2424685 /lldb/unittests/ScriptInterpreter/Python
parentb04c6467115054e40c6a55fc7d9001380d913c06 (diff)
downloadllvm-fc33861d48a95aa4682ce3b6e44732e5c8bbd092.zip
llvm-fc33861d48a95aa4682ce3b6e44732e5c8bbd092.tar.gz
llvm-fc33861d48a95aa4682ce3b6e44732e5c8bbd092.tar.bz2
[ELF] Split scanRelocations into scanRelocations/postScanRelocations
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 parallel relocation scanning possible (if we can avoid all stateful operations and make Symbol attributes atomic), but parallelism may not be the appealing choice * Make GOT deduplication feasible 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 'lldb/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions