diff options
author | Fangrui Song <i@maskray.me> | 2021-12-13 09:56:51 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-12-13 09:56:52 -0800 |
commit | fc33861d48a95aa4682ce3b6e44732e5c8bbd092 (patch) | |
tree | 17fd2727ea14493b1f7e212a6bcb6fa5d2424685 /lldb/unittests/ScriptInterpreter/Python | |
parent | b04c6467115054e40c6a55fc7d9001380d913c06 (diff) | |
download | llvm-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