llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets
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
..
RuntimeDyldCOFFI386.h Rename DEBUG macro to LLVM_DEBUG. 2018-05-14 12:53:11 +00:00
RuntimeDyldCOFFThumb.h Rename DEBUG macro to LLVM_DEBUG. 2018-05-14 12:53:11 +00:00
RuntimeDyldCOFFX86_64.h [RuntimeDyld][COFF] Skip non-loaded sections when calculating ImageBase. 2018-10-23 01:36:33 +00:00
RuntimeDyldELFMips.cpp Rename DEBUG macro to LLVM_DEBUG. 2018-05-14 12:53:11 +00:00
RuntimeDyldELFMips.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
RuntimeDyldMachOAArch64.h [RuntimeDyld][MachO] Add support for MachO::ARM64_RELOC_POINTER_TO_GOT reloc. 2018-05-23 21:27:07 +00:00
RuntimeDyldMachOARM.h [ORC] Add a 'Callable' flag to JITSymbolFlags. 2018-08-01 22:42:23 +00:00
RuntimeDyldMachOI386.h Rename DEBUG macro to LLVM_DEBUG. 2018-05-14 12:53:11 +00:00
RuntimeDyldMachOX86_64.h Rename DEBUG macro to LLVM_DEBUG. 2018-05-14 12:53:11 +00:00