Index: lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h =================================================================== --- lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h +++ lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h @@ -37,7 +37,8 @@ if (!ImageBase) { ImageBase = std::numeric_limits::max(); for (const SectionEntry &Section : Sections) - ImageBase = std::min(ImageBase, Section.getLoadAddress()); + if (Section.getLoadAddress() != 0) + ImageBase = std::min(ImageBase, Section.getLoadAddress()); } return ImageBase; }