Home
last modified time | relevance | path

Searched refs:imageBase (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/lld/MachO/
H A DExportTrie.h26 void setImageBase(uint64_t addr) { imageBase = addr; } in setImageBase()
37 uint64_t imageBase = 0; variable
H A DExportTrie.cpp62 ExportInfo(const Symbol &sym, uint64_t imageBase) in ExportInfo()
63 : address(sym.getVA() - imageBase) { in ExportInfo()
215 node->info = ExportInfo(*pivotSymbol, imageBase); in sortAndBuild()
/llvm-project-15.0.7/lld/COFF/
H A DChunks.cpp110 case IMAGE_REL_AMD64_ADDR32: add32(off, s + config->imageBase); break; in applyRelX64()
111 case IMAGE_REL_AMD64_ADDR64: add64(off, s + config->imageBase); break; in applyRelX64()
131 case IMAGE_REL_I386_DIR32: add32(off, s + config->imageBase); break; in applyRelX86()
197 case IMAGE_REL_ARM_ADDR32: add32(off, sx + config->imageBase); break; in applyRelARM()
199 case IMAGE_REL_ARM_MOV32T: applyMOV32T(off, sx + config->imageBase); break; in applyRelARM()
310 case IMAGE_REL_ARM64_ADDR32: add32(off, s + config->imageBase); break; in applyRelARM64()
312 case IMAGE_REL_ARM64_ADDR64: add64(off, s + config->imageBase); break; in applyRelARM64()
741 impSymbol->getRVA() + config->imageBase); in writeTo()
751 applyMOV32T(buf, impSymbol->getRVA() + config->imageBase); in writeTo()
808 write64le(buf, sym->getRVA() + config->imageBase); in writeTo()
[all …]
H A DMapFile.cpp86 uint64_t rvaa = config->imageBase + a.first->getRVA(); in sortUniqueSymbols()
87 uint64_t rvab = config->imageBase + b.first->getRVA(); in sortUniqueSymbols()
187 os << format_hex_no_prefix((config->imageBase + sym->getRVA()), 16); in getSymbolStrings()
243 << format_hex_no_prefix(config->imageBase, 16) << "\n"; in writeMapFile()
H A DDLL.cpp335 write32le(buf + 1, imp->getRVA() + config->imageBase); in writeTo()
355 write32le(buf + 4, desc->getRVA() + config->imageBase); in writeTo()
377 applyMOV32T(buf + 0, imp->getRVA() + config->imageBase); in writeTo()
399 applyMOV32T(buf + 14, desc->getRVA() + config->imageBase); in writeTo()
459 write64le(buf, thunk->getRVA() + config->imageBase); in writeTo()
465 write32le(buf, (thunk->getRVA() + config->imageBase) | bit); in writeTo()
H A DConfig.h246 uint64_t imageBase = -1; member
H A DSymbols.h258 uint64_t getRVA() { return va - config->imageBase; } in getRVA()
H A DDriver.cpp994 config->imageBase = m.ImageBase; in parseModuleDefs()
1654 parseNumbers(arg->getValue(), &config->imageBase); in linkerMain()
2157 if (config->imageBase == uint64_t(-1)) in linkerMain()
2158 config->imageBase = getDefaultImageBase(); in linkerMain()
H A DWriter.cpp1391 pe->ImageBase = config->imageBase; in writeHeader()
/llvm-project-15.0.7/lld/ELF/
H A DTarget.cpp182 if (config->imageBase) in getImageBase()
183 return *config->imageBase; in getImageBase()
H A DConfig.h282 llvm::Optional<uint64_t> imageBase; member
H A DLinkerScript.cpp1298 dot = config->imageBase.value_or(0); in assignAddresses()
H A DDriver.cpp2722 config->imageBase = getImageBase(args); in link()