1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/lib/ExecutionEngine
Lang Hames 4a5753f9a7 [ORC] Attempt to auto-claim responsibility for weak defs in ObjectLinkingLayer.
Compilers may insert new definitions during compilation, E.g. EH personality
function pointers, or named constant pool entries. This commit causes
ObjectLinkingLayer to attempt to claim responsibility for all weak definitions
in objects as they're linked. This is always safe (first claimant for each
symbol is granted responsibility, subsequent claims are rejected without error)
and prevents compiler-injected symbols from being dead-stripped (which they
will be if they remain unclaimed by anyone).

This change was motivated by errors seen by an out-of-tree client while testing
eh-frame support in JITLink ELF/x86-64: IR containing exceptions didn't define
DW.ref.__gxx_personality_v0 (since it's added by CodeGen), and this caused
DW.ref.__gxx_personality_v0 to be dead-stripped leading to linker failures.

No test case yet: We won't have a way to test in-tree until we enable JITLink
for lli on Linux.
2021-01-27 00:09:40 +11:00
..
IntelJITEvents [MCJIT] Add cmake variables to customize ittapi git location and revision. 2020-12-09 21:04:24 +03:00
Interpreter [llvm] Use llvm::append_range (NFC) 2021-01-06 18:27:33 -08:00
JITLink [JITLink][ELF/x86-64] When building PLT stub, use -4 offset for PCRel32. 2021-01-26 23:51:58 +11:00
MCJIT [llvm] Use *Set::contains (NFC) 2021-01-13 19:14:41 -08:00
OProfileJIT llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Orc [ORC] Attempt to auto-claim responsibility for weak defs in ObjectLinkingLayer. 2021-01-27 00:09:40 +11:00
PerfJITEvents llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
RuntimeDyld [llvm] Remove redundant string initialization (NFC) 2021-01-12 21:43:46 -08:00
CMakeLists.txt Revert "[build] normalize components dependencies" 2020-11-18 19:23:11 +01:00
ExecutionEngine.cpp [ORC] Remove OrcV1 APIs. 2020-10-18 21:02:44 -07:00
ExecutionEngineBindings.cpp
GDBRegistrationListener.cpp
SectionMemoryManager.cpp [ExecutionEngine, Linker] Use erase_if (NFC) 2020-12-23 21:44:39 -08:00
TargetSelect.cpp