Lines Matching refs:sec
40 std::string lld::toString(const InputSectionBase *sec) { in toString() argument
41 return (toString(sec->file) + ":(" + sec->name + ")").str(); in toString()
185 InputSection *sec; in getOutputSection() local
187 sec = isec; in getOutputSection()
189 sec = ms->getParent(); in getOutputSection()
191 sec = eh->getParent(); in getOutputSection()
194 return sec ? sec->getParent() : nullptr; in getOutputSection()
345 InputSectionBase *sec = getRelocatedSection(); in copyRelocations() local
346 (void)sec->data(); // uncompress if needed in copyRelocations()
361 p->r_offset = sec->getVA(rel.r_offset); in copyRelocations()
380 if (!isDebugSection(*sec) && sec->name != ".eh_frame" && in copyRelocations()
381 sec->name != ".gcc_except_table" && sec->name != ".got2" && in copyRelocations()
382 sec->name != ".toc") { in copyRelocations()
384 Elf_Shdr_Impl<ELFT> sec = file->template getELFShdrs<ELFT>()[secIdx]; in copyRelocations() local
386 CHECK(file->getObj().getSectionName(sec), file) + in copyRelocations()
399 const uint8_t *bufLoc = sec->rawData.begin() + rel.r_offset; in copyRelocations()
416 addend += sec->getFile<ELFT>()->mipsGp0; in copyRelocations()
422 sec->relocations.push_back({R_ABS, type, rel.r_offset, addend, &sym}); in copyRelocations()
424 p->r_addend >= 0x8000 && sec->file->ppc32Got2) { in copyRelocations()
430 p->r_addend += sec->file->ppc32Got2->outSecOff; in copyRelocations()
937 static void relocateNonAllocForRelocatable(InputSection *sec, uint8_t *buf) { in relocateNonAllocForRelocatable() argument
940 for (const Relocation &rel : sec->relocations) { in relocateNonAllocForRelocatable()
959 auto *sec = cast<InputSection>(this); in relocate() local
961 relocateNonAllocForRelocatable(sec, buf); in relocate()
964 const RelsOrRelas<ELFT> rels = sec->template relsOrRelas<ELFT>(); in relocate()
966 sec->relocateNonAlloc<ELFT>(buf, rels.rels); in relocate()
968 sec->relocateNonAlloc<ELFT>(buf, rels.relas); in relocate()
985 if (auto *sec = dyn_cast<InputSection>(this)) in relocateAlloc() local
986 secAddr += sec->outSecOff; in relocateAlloc()