Home
last modified time | relevance | path

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

/src/contrib/llvm-project/lld/COFF/
H A DChunks.cpp115 uint64_t imageBase) const { in applyRelX64()
118 add32(off, s + imageBase); in applyRelX64()
121 add64(off, s + imageBase); in applyRelX64()
142 uint64_t imageBase) const { in applyRelX86()
146 add32(off, s + imageBase); in applyRelX86()
210 uint64_t imageBase) const { in applyRelARM()
217 add32(off, sx + imageBase); in applyRelARM()
221 applyMOV32T(off, sx + imageBase); in applyRelARM()
327 uint64_t imageBase) const { in applyRelARM64()
337 add32(off, s + imageBase); in applyRelARM64()
[all …]
H A DMapFile.cpp68 uint64_t imageBase) { in sortUniqueSymbols() argument
85 parallelSort(v, [imageBase](const SortEntry &a, const SortEntry &b) { in sortUniqueSymbols()
88 uint64_t rvaa = imageBase + a.first->getRVA(); in sortUniqueSymbols()
89 uint64_t rvab = imageBase + b.first->getRVA(); in sortUniqueSymbols()
138 sortUniqueSymbols(syms, ctx.config.imageBase); in getSymbols()
139 sortUniqueSymbols(staticSyms, ctx.config.imageBase); in getSymbols()
189 os << format_hex_no_prefix((ctx.config.imageBase + sym->getRVA()), 16); in getSymbolStrings()
247 << format_hex_no_prefix(ctx.config.imageBase, 16) << "\n"; in writeMapFile()
H A DDLL.cpp395 write32le(buf + 1, imp->getRVA() + ctx.config.imageBase); in writeTo()
420 write32le(buf + 4, desc->getRVA() + ctx.config.imageBase); in writeTo()
447 applyMOV32T(buf + 0, imp->getRVA() + ctx.config.imageBase); in writeTo()
474 applyMOV32T(buf + 14, desc->getRVA() + ctx.config.imageBase); in writeTo()
540 write64le(buf, thunk->getRVA() + ctx.config.imageBase); in writeTo()
546 write32le(buf, (thunk->getRVA() + ctx.config.imageBase) | bit); in writeTo()
H A DChunks.h270 uint64_t p, uint64_t imageBase) const;
272 uint64_t p, uint64_t imageBase) const;
274 uint64_t p, uint64_t imageBase) const;
276 uint64_t p, uint64_t imageBase) const;
H A DSymbols.cpp108 uint64_t DefinedAbsolute::getRVA() { return va - ctx.config.imageBase; } in getRVA()
H A DConfig.h282 uint64_t imageBase = -1; member
H A DDriver.cpp1007 ctx.config.imageBase = m.ImageBase; in parseModuleDefs()
1765 parseNumbers(arg->getValue(), &config->imageBase); in linkerMain()
2352 if (config->imageBase == uint64_t(-1)) in linkerMain()
2353 config->imageBase = getDefaultImageBase(); in linkerMain()
H A DWriter.cpp1634 pe->ImageBase = config->imageBase; in writeHeader()
2478 if (loadConfig->field != ctx.config.imageBase + s->getRVA()) \ in checkLoadConfigGuardData()
/src/contrib/llvm-project/lld/MachO/
H A DExportTrie.h25 void setImageBase(uint64_t addr) { imageBase = addr; } in setImageBase()
36 uint64_t imageBase = 0; variable
H A DExportTrie.cpp63 ExportInfo(const Symbol &sym, uint64_t imageBase) in ExportInfo()
64 : address(sym.getVA() - imageBase) { in ExportInfo()
259 node->info = ExportInfo(*pivotSymbol, imageBase); in sortAndBuild()
/src/contrib/llvm-project/lld/ELF/
H A DTarget.cpp180 if (config->imageBase) in getImageBase()
181 return *config->imageBase; in getImageBase()
H A DConfig.h358 std::optional<uint64_t> imageBase; member
H A DLinkerScript.cpp1396 dot = config->imageBase.value_or(0); in assignAddresses()
H A DDriver.cpp3112 config->imageBase = getImageBase(args); in link()