/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | COFF_x86_64.cpp | 96 Symbol *ImageBase = GetImageBaseSymbol()(getGraph()); in addSingleRelocation() 100 if (!ImageBase) in addSingleRelocation() 101 ImageBase = &addImageBaseSymbol(); in addSingleRelocation() 204 auto ImageBase = GetImageBase(G); in lowerCOFFRelocationEdges() 205 assert(ImageBase && "__ImageBase symbol must be defined"); in lowerCOFFRelocationEdges() 206 E.setAddend(E.getAddend() - ImageBase->getAddress().getValue()); in lowerCOFFRelocationEdges() 198 auto ImageBase = getImageBaseAddress(G, Ctx); lowerCOFFRelocationEdges() local 255 orc::ExecutorAddr ImageBase; getImageBaseAddress() local 273 orc::ExecutorAddr ImageBase; global() member in __anon8ce78a2c0111::COFFLinkGraphLowering_x86_64
|
/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
H A D | RuntimeDyldCOFFX86_64.h | 32 uint64_t ImageBase; variable 36 if (!ImageBase) { in getImageBase() 37 ImageBase = std::numeric_limits<uint64_t>::max(); in getImageBase() 43 // be included in the ImageBase calculation. in getImageBase() 45 ImageBase = std::min(ImageBase, Section.getLoadAddress()); in getImageBase() 47 return ImageBase; in getImageBase() 60 ImageBase(0) {} in RuntimeDyldCOFFX86_64() 112 // ADDR32NB requires an offset less than 2GB from 'ImageBase'. in resolveRelocation() 115 const uint64_t ImageBase = getImageBase(); in resolveRelocation() local 116 if (Value < ImageBase || ((Value - ImageBase) > UINT32_MAX)) in resolveRelocation() [all …]
|
H A D | RuntimeDyldCOFFAArch64.h | 83 uint64_t ImageBase; in getImageBase() 87 if (!ImageBase) { in getImageBase() 88 ImageBase = std::numeric_limits<uint64_t>::max(); in getImageBase() 94 // be included in the ImageBase calculation. in RuntimeDyldCOFFAArch64() 96 ImageBase = std::min(ImageBase, Section.getLoadAddress()); in getStubAlignment() 98 return ImageBase; in getMaxStubSize() 105 ImageBase(0) {} in generateRelocationStub() 72 uint64_t ImageBase; global() variable
|
/llvm-project/llvm/test/tools/yaml2obj/COFF/ |
H A D | load-config.yaml | 55 ImageBase: 0x180000000 143 ImageBase: 0x180000000 181 ImageBase: 0x180000000 222 ImageBase: 0x400000 252 ImageBase: 0x180000000 281 ImageBase: 0x180000000 309 ImageBase: 0x180000000
|
H A D | basic-arm64.yaml | 6 # CHECK: ImageBase: 0x140000000 8 # ROUNDTRIP: ImageBase: 5368709120 16 ImageBase: 5368709120
|
H A D | invalid-raw-data.yaml | 6 ImageBase: 0x180000000
|
H A D | mixed-data.yaml | 6 ImageBase: 0x180000000
|
H A D | structured-data.yaml | 7 ImageBase: 0x180000000
|
/llvm-project/lld/COFF/ |
H A D | MapFile.cpp | 68 uint64_t imageBase) { in sortUniqueSymbols() argument 85 parallelSort(v, [imageBase](const SortEntry &a, const SortEntry &b) { in sortUniqueSymbols() 86 // Add config.imageBase to avoid comparing "negative" RVAs. in sortUniqueSymbols() 88 uint64_t rvaa = imageBase + a.first->getRVA(); in sortUniqueSymbols() 89 uint64_t rvab = imageBase + b.first->getRVA(); in sortUniqueSymbols() 139 sortUniqueSymbols(syms, ctx.config.imageBase); in getSymbols() 140 sortUniqueSymbols(staticSyms, ctx.config.imageBase); in getSymbols() 190 os << format_hex_no_prefix((ctx.config.imageBase + sym->getRVA()), 16); in getSymbolStrings() 248 << format_hex_no_prefix(ctx.config.imageBase, 16) << "\n"; in writeMapFile()
|
H A D | Chunks.cpp | 116 uint64_t imageBase) const { in applyRelX64() 119 add32(off, s + imageBase); in applyRelX64() 122 add64(off, s + imageBase); in applyRelX64() 143 uint64_t imageBase) const { in applyRelX86() 147 add32(off, s + imageBase); in applyRelX86() 211 uint64_t imageBase) const { in applyRelARM() 218 add32(off, sx + imageBase); in applyRelARM() 222 applyMOV32T(off, sx + imageBase); in applyRelARM() 328 uint64_t imageBase) const { in applyRelARM64() 338 add32(off, s + imageBase); in applyRelARM64() 445 uint64_t imageBase = file->ctx.config.imageBase; applyRelocation() local [all...] |
/llvm-project/lld/test/COFF/ |
H A D | base.test | 7 # DEFAULT-HEADER: ImageBase: 0x140000000 15 # BASE-HEADER: ImageBase: 0x280000000
|
H A D | giats.s | 14 # CHECK: ImageBase: 0x140000000 38 # DELAY-CHECK: ImageBase: 0x140000000
|
H A D | gfids-gc.s | 24 # CHECK-NOGC: ImageBase: 0x140000000 50 # CHECK-GC: ImageBase: 0x140000000
|
/llvm-project/lld/MachO/ |
H A D | ExportTrie.h | 25 void setImageBase(uint64_t addr) { imageBase = addr; } in setImageBase() 36 uint64_t imageBase = 0; variable
|
H A D | ExportTrie.cpp | 63 ExportInfo(const Symbol &sym, uint64_t imageBase) in ExportInfo() 64 : address(sym.getVA() - imageBase) { in ExportInfo() 259 node->info = ExportInfo(*pivotSymbol, imageBase); in sortAndBuild()
|
/llvm-project/llvm/test/tools/llvm-objdump/COFF/ |
H A D | private-headers.yaml | 18 # PE32PLUS-NEXT:ImageBase 0000000140000000 65 ImageBase: 0x140000000 135 # PE32-NEXT:ImageBase 00000000
|
H A D | arm64ec.yaml | 78 ImageBase: 0x180000000 147 ImageBase: 0x180000000
|
/llvm-project/llvm/lib/DebugInfo/PDB/ |
H A D | PDBContext.cpp | 28 ErrorOr<uint64_t> ImageBase = Object.getImageBase(); in PDBContext() local 29 if (ImageBase) in PDBContext() 30 Session->setLoadAddress(ImageBase.get()); in PDBContext()
|
/llvm-project/llvm/test/tools/llvm-readobj/COFF/ |
H A D | tls-directory.test | 38 ImageBase: 0 112 ImageBase: 0
|
/llvm-project/lldb/source/Plugins/Platform/Windows/ |
H A D | PlatformWindows.cpp | 664 void *ImageBase; in MakeLoadImageUtilityFunction() 680 result->ImageBase = LoadLibraryExW(name, nullptr, in MakeLoadImageUtilityFunction() 682 if (result->ImageBase == nullptr) in MakeLoadImageUtilityFunction() 685 result->Length = GetModuleFileNameA(result->ImageBase, result->ModulePath, in MakeLoadImageUtilityFunction() 688 return result->ImageBase; in MakeLoadImageUtilityFunction()
|
/llvm-project/lldb/test/Shell/Minidump/Windows/Inputs/ |
H A D | find-module.exe.yaml | 4 ImageBase: 4194304
|
/llvm-project/llvm/test/tools/llvm-objdump/ |
H A D | file-headers-pe.test | 28 ImageBase: 0x12
|
/llvm-project/llvm/lib/ObjCopy/COFF/ |
H A D | COFFObject.h | 184 Dest.ImageBase = Src.ImageBase; in copyPeHeader()
|
/llvm-project/lld/ELF/ |
H A D | Target.cpp | 171 if (ctx.arg.imageBase) in relocateAlloc() 172 return *ctx.arg.imageBase; in relocateAlloc()
|
/llvm-project/lldb/test/Shell/ObjectFile/PECOFF/ |
H A D | default-triple-windows-gnu.yaml | 11 ImageBase: 5368709120
|