Lines Matching refs:Config
156 if (!Config->Relocatable) in writeTo()
213 if (!Config->Relocatable) in writeTo()
251 StringRef S = Saver.save(Config->DynamicLinker); in createInterpSection()
270 switch (Config->BuildId) { in getHashSize()
279 return Config->BuildIdVector.size(); in getHashSize()
336 switch (Config->BuildId) { in writeBuildId()
357 memcpy(HashBuf, Config->BuildIdVector.data(), Config->BuildIdVector.size()); in writeBuildId()
468 size_t Aligned = alignTo(D.size(), Config->Wordsize); in writeCieFde()
482 Off += alignTo(Rec->Cie->Size, Config->Wordsize); in finalizeContents()
486 Off += alignTo(Fde->Size, Config->Wordsize); in finalizeContents()
622 TlsIndexOff = NumEntries * Config->Wordsize; in addTlsIndex()
628 return this->getVA() + B.GlobalDynIndex * Config->Wordsize; in getGlobalDynAddr()
632 return B.GlobalDynIndex * Config->Wordsize; in getGlobalDynOffset()
636 Size = NumEntries * Config->Wordsize; in finalizeContents()
738 return Index * Config->Wordsize; in getPageEntryOffset()
746 return G.Tls.lookup(Sym) * Config->Wordsize; in getSymEntryOffset()
748 return G.Global.lookup(Sym) * Config->Wordsize; in getSymEntryOffset()
749 return G.Local16.lookup({Sym, Addend}) * Config->Wordsize; in getSymEntryOffset()
754 return G.DynTlsSymbols.lookup(nullptr) * Config->Wordsize; in getTlsIndexOffset()
761 return G.DynTlsSymbols.lookup(Sym) * Config->Wordsize; in getGlobalDynOffset()
794 if (Count * Config->Wordsize > Config->MipsGotSize) in tryMergeGots()
804 Size = HeaderEntriesNum * Config->Wordsize; in updateAllocSize()
806 Size += G.getEntriesNum() * Config->Wordsize; in updateAllocSize()
939 uint64_t Offset = P.second * Config->Wordsize; in build()
945 uint64_t Offset = P.second * Config->Wordsize; in build()
947 if (!Config->Pic) in build()
955 if (!S->IsPreemptible && !Config->Pic) in build()
962 Offset += Config->Wordsize; in build()
974 uint64_t Offset = P.second * Config->Wordsize; in build()
977 if (!Config->Pic) in build()
984 uint64_t Offset = (L.second.FirstIndex + PI) * Config->Wordsize; in build()
990 uint64_t Offset = P.second * Config->Wordsize; in build()
1000 return Config->Relocatable; in empty()
1009 return getVA() + Gots[*F->MipsGotIndex].StartIndex * Config->Wordsize + in getGp()
1028 writeUint(Buf + Config->Wordsize, (uint64_t)1 << (Config->Wordsize * 8 - 1)); in writeTo()
1037 writeUint(Buf + I * Config->Wordsize, VA); in writeTo()
1064 if (P.first == nullptr && !Config->Pic) in writeTo()
1070 if (!Config->Pic) in writeTo()
1084 Config->EMachine == EM_PPC64 ? SHT_NOBITS : SHT_PROGBITS, in GotPltSection()
1086 Config->EMachine == EM_PPC64 ? ".plt" : ".got.plt") {} in GotPltSection()
1103 Buf += Config->Wordsize; in writeTo()
1117 if (Config->EMachine == EM_ARM) in getIgotPltName()
1122 if (Config->EMachine == EM_PPC64) in getIgotPltName()
1132 Config->EMachine == EM_PPC64 ? SHT_NOBITS : SHT_PROGBITS, in IgotPltSection()
1148 Buf += Config->Wordsize; in writeTo()
1186 static unsigned getVerDefNum() { return Config->VersionDefinitions.size() + 1; } in getVerDefNum()
1190 : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_DYNAMIC, Config->Wordsize, in DynamicSection()
1198 if (Config->EMachine == EM_MIPS || Config->ZRodynamic) in DynamicSection()
1203 for (StringRef S : Config->FilterList) in DynamicSection()
1205 for (StringRef S : Config->AuxiliaryList) in DynamicSection()
1208 if (!Config->Rpath.empty()) in DynamicSection()
1209 addInt(Config->EnableNewDtags ? DT_RUNPATH : DT_RPATH, in DynamicSection()
1210 In.DynStrTab->addString(Config->Rpath)); in DynamicSection()
1217 if (!Config->SoName.empty()) in DynamicSection()
1218 addInt(DT_SONAME, In.DynStrTab->addString(Config->SoName)); in DynamicSection()
1275 if (Config->Bsymbolic) in finalizeContents()
1277 if (Config->ZGlobal) in finalizeContents()
1279 if (Config->ZInitfirst) in finalizeContents()
1281 if (Config->ZInterpose) in finalizeContents()
1283 if (Config->ZNodefaultlib) in finalizeContents()
1285 if (Config->ZNodelete) in finalizeContents()
1287 if (Config->ZNodlopen) in finalizeContents()
1289 if (Config->ZNow) { in finalizeContents()
1293 if (Config->ZOrigin) { in finalizeContents()
1297 if (!Config->ZText) in finalizeContents()
1299 if (Config->HasStaticTlsModel) in finalizeContents()
1315 if (!Config->Shared && !Config->Relocatable && !Config->ZRodynamic) in finalizeContents()
1325 bool IsRela = Config->IsRela; in finalizeContents()
1332 if (Config->EMachine != EM_MIPS) { in finalizeContents()
1334 if (Config->ZCombreloc && NumRelativeRels) in finalizeContents()
1339 addInSec(Config->UseAndroidRelrTags ? DT_ANDROID_RELR : DT_RELR, in finalizeContents()
1341 addSize(Config->UseAndroidRelrTags ? DT_ANDROID_RELRSZ : DT_RELRSZ, in finalizeContents()
1343 addInt(Config->UseAndroidRelrTags ? DT_ANDROID_RELRENT : DT_RELRENT, in finalizeContents()
1355 switch (Config->EMachine) { in finalizeContents()
1366 addInt(DT_PLTREL, Config->IsRela ? DT_RELA : DT_REL); in finalizeContents()
1373 if (!Config->ZText) in finalizeContents()
1393 if (Symbol *B = Symtab->find(Config->Init)) in finalizeContents()
1396 if (Symbol *B = Symtab->find(Config->Fini)) in finalizeContents()
1412 if (Config->EMachine == EM_MIPS) { in finalizeContents()
1426 if (!Config->Pie) in finalizeContents()
1435 if (Config->EMachine == EM_PPC64 && !In.Plt->empty()) { in finalizeContents()
1482 : SyntheticSection(SHF_ALLOC, Type, Config->Wordsize, Name), in RelocationBaseSection()
1497 if (Config->WriteAddends && (Expr != R_ADDEND || Addend != 0)) in addReloc()
1512 InputSection *SymTab = Config->Relocatable ? In.SymTab : In.DynSymTab; in finalizeContents()
1526 Config->UseAndroidRelrTags ? SHT_ANDROID_RELR : SHT_RELR, in RelrBaseSection()
1527 Config->Wordsize, ".relr.dyn") {} in RelrBaseSection()
1532 if (Config->IsRela) in encodeDynamicReloc()
1535 P->setSymbolAndType(Rel.getSymIndex(), Rel.Type, Config->IsMips64EL); in encodeDynamicReloc()
1540 : RelocationBaseSection(Name, Config->IsRela ? SHT_RELA : SHT_REL, in RelocationSection()
1541 Config->IsRela ? DT_RELA : DT_REL, in RelocationSection()
1542 Config->IsRela ? DT_RELASZ : DT_RELSZ), in RelocationSection()
1544 this->Entsize = Config->IsRela ? sizeof(Elf_Rela) : sizeof(Elf_Rel); in RelocationSection()
1561 Buf += Config->IsRela ? sizeof(Elf_Rela) : sizeof(Elf_Rel); in writeTo()
1573 Name, Config->IsRela ? SHT_ANDROID_RELA : SHT_ANDROID_REL, in AndroidPackedRelocationSection()
1574 Config->IsRela ? DT_ANDROID_RELA : DT_ANDROID_REL, in AndroidPackedRelocationSection()
1575 Config->IsRela ? DT_ANDROID_RELASZ : DT_ANDROID_RELSZ) { in AndroidPackedRelocationSection()
1644 if (R.getType(Config->IsMips64EL) == Target->RelativeRel) in updateAllocSize()
1666 } while (I != E && (I - 1)->r_offset + Config->Wordsize == I->r_offset); in updateAllocSize()
1676 Config->IsRela ? RELOCATION_GROUP_HAS_ADDEND_FLAG : 0; in updateAllocSize()
1693 if (Config->IsRela) { in updateAllocSize()
1702 Add(Config->Wordsize); in updateAllocSize()
1704 if (Config->IsRela) { in updateAllocSize()
1722 if (Config->IsRela) { in updateAllocSize()
1740 if (Config->IsRela) { in updateAllocSize()
1761 this->Entsize = Config->Wordsize; in RelrSection()
1854 Config->Wordsize, in SymbolTableBaseSection()
1893 } else if (Config->EMachine == EM_MIPS) { in finalizeContents()
1969 if (!Config->DefineCommon) in getCommonSec()
2008 if (Config->EMachine == EM_PPC64) in writeTo()
2039 if (Config->EMachine == EM_MIPS) { in writeTo()
2058 if (Config->Relocatable) in writeTo()
2137 : SyntheticSection(SHF_ALLOC, SHT_GNU_HASH, Config->Wordsize, ".gnu.hash") { in GnuHashTableSection()
2150 MaskWords = NextPowerOf2(NumBits / (Config->Wordsize * 8)); in finalizeContents()
2154 Size += Config->Wordsize * MaskWords; // Bloom filter in finalizeContents()
2174 Buf += Config->Wordsize * MaskWords; in writeTo()
2186 unsigned C = Config->Is64 ? 64 : 32; in writeBloomFilter()
2191 uint64_t Val = readUint(Buf + I * Config->Wordsize); in writeBloomFilter()
2194 writeUint(Buf + I * Config->Wordsize, Val); in writeBloomFilter()
2312 Config->EMachine == EM_PPC64 ? ".glink" : ".plt"), in PltSection()
2313 HeaderSize(!IsIplt || Config->ZRetpolineplt ? Target->PltHeaderSize : 0), in PltSection()
2317 if (Config->EMachine == EM_SPARCV9) in PltSection()
2459 DWARFDebugPubTable Table(Obj, *Pub, Config->IsLE, true); in readPubNamesAndTypes()
2701 if (!Config->SoName.empty()) in getFileDefName()
2702 return Config->SoName; in getFileDefName()
2703 return Config->OutputFile; in getFileDefName()
2708 for (VersionDefinition &V : Config->VersionDefinitions) in finalizeContents()
2741 for (VersionDefinition &V : Config->VersionDefinitions) { in writeTo()
2967 bool ShouldTailMerge = (Flags & SHF_STRINGS) && Config->Optimize >= 2; in createMergeSynthetic()
3040 : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS, Config->Wordsize, in MipsRldMapSection()
3045 Config->Wordsize, ".ARM.exidx") {} in ARMExidxSentinelSection()
3075 Config->Wordsize, ".text.thunk") { in ThunkSection()
3117 Config->Pic ? SHT_NOBITS : SHT_PROGBITS, 8, in PPC64LongBranchTargetSection()
3135 if (Config->Pic) in writeTo()