Lines Matching +defs:file +defs:start

36     : Chunk(k), file(f), header(h), repl(this) {
38 if (file)
39 setRelocs(file->getCOFFObj()->getRelocations(header));
43 if (file) {
44 if (Expected<StringRef> e = file->getCOFFObj()->getSectionName(header))
58 if (file)
59 live = !file->symtab.ctx.config.doGC || !isCOMDAT();
132 applySecIdx(off, os, file->symtab.ctx.outputSections.size());
137 toString(file));
152 applySecIdx(off, os, file->symtab.ctx.outputSections.size());
157 toString(file));
228 applySecIdx(off, os, file->symtab.ctx.outputSections.size());
234 toString(file));
349 applySecIdx(off, os, file->symtab.ctx.outputSections.size());
354 toString(file));
370 // have to go back to the object file.
371 ObjFile *file = fromChunk->file;
374 name = toString(file->symtab.ctx, *sym);
377 check(file->getCOFFObj()->getSymbol(rel.SymbolTableIndex));
379 file->symtab.ctx, check(file->getCOFFObj()->getSymbolName(coffSym)));
383 getSymbolLocations(file, rel.SymbolTableIndex);
396 // Copy section contents from source object file to output file.
425 auto *sym = dyn_cast_or_null<Defined>(file->getSymbol(rel.SymbolTableIndex));
431 COFFLinkerContext &ctx = file->symtab.ctx;
474 warn("some relocations in " + file->getName() + " are not sorted");
562 Symbol *target = file->getSymbol(rel.SymbolTableIndex);
572 COFFLinkerContext &ctx = file->symtab.ctx;
672 dyn_cast_or_null<Defined>(file->getSymbol(rel.SymbolTableIndex));
686 file->getCOFFObj()->getRelocationTypeName(rel.Type) + " in " +
687 toString(file));
690 int addressSizeInBits = file->symtab.ctx.config.is64() ? 64 : 32;
692 warn("runtime pseudo relocation in " + toString(file) + " against " +
722 cantFail(file->getCOFFObj()->getSectionContents(header, a));
772 SectionRef s(r, file->getCOFFObj());
932 uint32_t start = entry.first->getRVA();
933 table[i].StartOffset = start | entry.type;
934 table[i].Length = entry.last->getRVA() + entry.last->getSize() - start;
1097 uint32_t start = thunk->getRVA();
1098 ranges[i].StartRva = start;
1099 ranges[i].EndRva = start + thunk->getSize();
1100 ranges[i].EntryPoint = start;
1118 ImportThunkChunkARM64EC::ImportThunkChunkARM64EC(ImportFile *file)
1119 : ImportThunkChunk(file->symtab.ctx, file->impSym), file(file) {}
1130 applyArm64Addr(buf, file->impSym->getRVA(), rva, 12);
1131 applyArm64Ldr(buf + 4, file->impSym->getRVA() & 0xfff);
1143 Defined *helper = cast<Defined>(file->symtab.ctx.config.arm64ECIcallHelper);
1157 auto helper = cast<Defined>(file->symtab.ctx.config.arm64ECIcallHelper);