Lines Matching refs:sec
297 static void replaceWithDefined(Symbol &sym, SectionBase &sec, uint64_t value, in replaceWithDefined() argument
302 sym.type, value, size, &sec}); in replaceWithDefined()
363 BssSection *sec = in addCopyRelSymbol() local
373 isd->sections.push_back(sec); in addCopyRelSymbol()
374 osec->commitSection(sec); in addCopyRelSymbol()
380 replaceWithDefined(*sym, *sec, 0, sym->size); in addCopyRelSymbol()
382 mainPart->relaDyn->addSymbolReloc(target->copyRel, *sec, 0, ss); in addCopyRelSymbol()
399 explicit OffsetGetter(InputSectionBase &sec) { in OffsetGetter() argument
400 if (auto *eh = dyn_cast<EhInputSection>(&sec)) in OffsetGetter()
434 explicit RelocationScanner(InputSectionBase &sec) in RelocationScanner() argument
435 : sec(sec), getter(sec), config(elf::config.get()), target(*elf::target) { in RelocationScanner()
440 InputSectionBase &sec; member in __anon04691b640111::RelocationScanner
469 return sec.getFile<ELFT>()->mipsGp0; in computeMipsAddend()
481 const uint8_t *buf = sec.rawData.data(); in computeMipsAddend()
508 const uint8_t *buf = sec.rawData.data(); in computeAddend()
568 InputSectionBase *sec; member
752 InputSectionBase &sec = *l.sec; in reportUndefinedSymbol() local
756 std::string src = sec.getSrcMsg(sym, offset); in reportUndefinedSymbol()
759 msg += sec.getObjMsg(offset); in reportUndefinedSymbol()
816 static bool maybeReportUndefined(Undefined &sym, InputSectionBase &sec, in maybeReportUndefined() argument
821 undefs.push_back({&sym, {{&sec, offset}}, false}); in maybeReportUndefined()
840 if (sym.discardedSecIdx != 0 && (sec.name == ".got2" || sec.name == ".toc")) in maybeReportUndefined()
846 undefs.push_back({&sym, {{&sec, offset}}, isWarning}); in maybeReportUndefined()
1009 toString(sym) + getLocation(sec, sym, relOff)); in isStaticLinkTimeConstant()
1044 sec.relocations.push_back({expr, type, offset, addend, &sym}); in processAux()
1048 bool canWrite = (sec.flags & SHF_WRITE) || !config->zText; in processAux()
1052 addRelativeReloc(sec, offset, sym, addend, expr, type); in processAux()
1057 sec.getPartition().relaDyn->addSymbolReloc(rel, sec, offset, sym, addend, in processAux()
1076 in.mipsGot->addEntry(*sec.file, sym, addend, expr); in processAux()
1086 getLocation(sec, sym, offset)); in processAux()
1097 getLocation(sec, sym, offset)); in processAux()
1100 sec.relocations.push_back({expr, type, offset, addend, &sym}); in processAux()
1135 getLocation(sec, sym, offset)); in processAux()
1138 sec.relocations.push_back({expr, type, offset, addend, &sym}); in processAux()
1146 "; recompile with -fPIC" + getLocation(sec, sym, offset)); in processAux()
1297 Symbol &sym = sec.getFile<ELFT>()->getSymbol(symIndex); in scanOne()
1316 maybeReportUndefined(cast<Undefined>(sym), sec, offset)) in scanOne()
1319 const uint8_t *relocatedAddr = sec.rawData.begin() + offset; in scanOne()
1339 sec.file->ppc64SmallCodeModelTocRelocs = true; in scanOne()
1352 getLocation(sec, sym, offset)); in scanOne()
1381 getLocation(sec, sym, offset)); in scanOne()
1385 handleTlsRelocation(type, sym, sec, offset, addend, expr)) { in scanOne()
1420 mainPart->relaDyn->addSymbolReloc(type, sec, offset, sym, addend, type); in scanOne()
1433 in.mipsGot->addEntry(*sec.file, sym, addend, expr); in scanOne()
1452 static void checkPPC64TLSRelax(InputSectionBase &sec, ArrayRef<RelTy> rels) { in checkPPC64TLSRelax() argument
1454 if (!sec.file || sec.file->ppc64DisableTLSRelax) in checkPPC64TLSRelax()
1476 sec.file->ppc64DisableTLSRelax = true; in checkPPC64TLSRelax()
1477 warn(toString(sec.file) + in checkPPC64TLSRelax()
1486 sec.relocations.reserve(rels.size()); in scan()
1489 checkPPC64TLSRelax<RelTy>(sec, rels); in scan()
1495 if (isa<EhInputSection>(sec)) in scan()
1505 (config->emachine == EM_PPC64 && sec.name == ".toc")) in scan()
1506 llvm::stable_sort(sec.relocations, in scan()