llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld
Lang Hames 776f1d50c8 [RuntimeDyld][COFF] Skip non-loaded sections when calculating ImageBase.
Non-loaded sections (whose unused load-address defaults to zero) should not
be taken into account when calculating ImageBase, or ImageBase will be
incorrectly set to 0.

Patch by Andrew Scheidecker. Thanks Andrew!

https://reviews.llvm.org/D51343

+        // The Sections list may contain sections that weren't loaded for
+        // whatever reason: they may be debug sections, and ProcessAllSections
+        // is false, or they may be sections that contain 0 bytes. If the
+        // section isn't loaded, the load address will be 0, and it should not
+        // be included in the ImageBase calculation.

llvm-svn: 344995
2018-10-23 01:36:33 +00:00
..
Targets [RuntimeDyld][COFF] Skip non-loaded sections when calculating ImageBase. 2018-10-23 01:36:33 +00:00
CMakeLists.txt [mips][rtdyld] Move MIPS relocation resolution to a subclass and implement N32 relocations 2016-12-13 11:39:18 +00:00
JITSymbol.cpp [ORC] Add partitioning support to CompileOnDemandLayer2. 2018-09-29 23:49:57 +00:00
LLVMBuild.txt
RTDyldMemoryManager.cpp Remove trailing space 2018-07-30 19:41:25 +00:00
RuntimeDyld.cpp [ORC] Add an asynchronous jit-link function, jitLinkForORC, to RuntimeDyld and 2018-09-25 22:57:44 +00:00
RuntimeDyldCOFF.cpp DebugInfo: Generalize LoadedObjectInfoHelper from RuntimeDyld 2017-07-05 15:23:56 +00:00
RuntimeDyldCOFF.h
RuntimeDyldChecker.cpp Remove 'orc' namespace from MSVCErrorWorkarounds.h, fix some typos that were 2018-09-25 20:48:57 +00:00
RuntimeDyldCheckerImpl.h [ORC] Reapply r342939 with a fix for MSVC's promise/future restrictions. 2018-09-25 19:48:46 +00:00
RuntimeDyldELF.cpp Remove trailing space 2018-07-30 19:41:25 +00:00
RuntimeDyldELF.h [mips] Adds support for R_MIPS_26, HIGHER, HIGHEST relocations in RuntimeDyld. 2017-10-22 09:47:41 +00:00
RuntimeDyldImpl.h [ORC] Add an asynchronous jit-link function, jitLinkForORC, to RuntimeDyld and 2018-09-25 22:57:44 +00:00
RuntimeDyldMachO.cpp Rename DEBUG macro to LLVM_DEBUG. 2018-05-14 12:53:11 +00:00
RuntimeDyldMachO.h [RuntimeDyld][ORC] Add support for Thumb mode to RuntimeDyldMachOARM. 2017-08-09 20:19:27 +00:00