mirror-llvm-project/llvm/lib/ExecutionEngine
Charles Zablit 9ca28bddf6
[RuntimeDyld][COFF] Apply addend for IMAGE_REL_AMD64_SECREL (#211015)
`IMAGE_REL_AMD64_SECREL` currently falls through the default case. Its
`Addend` is built using the target symbol's section offset. This is
incorrect: for a SECREL against a section symbol (offset 0), the real
value is stored as the addend in the relocated field. This results in
the SECREL writer always writing 0, which is wrong.

This patch reads the 4-byte field addend for SECREL, as `REL32` and
`ADDR64` already do. It also adds a test which fails without this.

Source: https://learn.microsoft.com/en-us/windows/win32/debug/pe-format
2026-07-22 17:28:05 +02:00
..
IntelJITEvents
IntelJITProfiling
Interpreter [llvm][lli] fix lli crash when run variable arguments function as a interpret (#173719) 2026-04-27 13:51:25 +00:00
JITLink [JITLink][x86-64] Fix GOTPCRELX call/jmp relaxation to use PC-relative fixup (#190179) 2026-07-01 08:45:18 +00:00
MCJIT
OProfileJIT
Orc [ORC] Add LLLazyJIT destructor with call to endSession. (#209399) 2026-07-14 20:18:40 +10:00
PerfJITEvents
RuntimeDyld [RuntimeDyld][COFF] Apply addend for IMAGE_REL_AMD64_SECREL (#211015) 2026-07-22 17:28:05 +02:00
CMakeLists.txt
ExecutionEngine.cpp [LLVM][ExecutionEngine] Add vector ConstantInt/FP support to getConstantValue(). (#182538) 2026-02-27 12:05:48 +00:00
ExecutionEngineBindings.cpp
GDBRegistrationListener.cpp
SectionMemoryManager.cpp Implement reserveAllocationSpace for SectionMemoryManager (#71968) 2025-12-18 13:19:45 +11:00
TargetSelect.cpp