Lines Matching refs:SD
93 static bool IsELFMetaDataSection(const MCSectionData &SD);
94 static uint64_t DataSectionSize(const MCSectionData &SD);
96 const MCSectionData &SD);
99 const MCSectionData &SD);
212 const MCSymbolData *SD, uint64_t C,
242 const MCSectionData &SD);
273 const MCSectionData *SD);
283 bool isWeak(const MCSymbolData &SD) const override;
496 MCSymbolData &SD = Asm.getSymbolData(Symbol); in ExecutePostLayoutBinding() local
505 OriginalData.setExternal(SD.isExternal()); in ExecutePostLayoutBinding()
506 MCELF::SetBinding(OriginalData, MCELF::GetBinding(SD)); in ExecutePostLayoutBinding()
656 const MCSymbolData *SD, in shouldRelocateWithSymbol() argument
693 const MCSymbol &Sym = SD->getSymbol(); in shouldRelocateWithSymbol()
697 unsigned Binding = MCELF::GetBinding(*SD); in shouldRelocateWithSymbol()
747 if (TargetObjectWriter->needsRelocateWithSymbol(*SD, Type)) in shouldRelocateWithSymbol()
879 const MCSymbolData &SD = Asm.getSymbolData(*S); in getSymbolIndexInSymbolTable() local
880 return SD.getIndex(); in getSymbolIndexInSymbolTable()
948 const MCSectionData &SD = *it; in computeIndexMap() local
950 static_cast<const MCSectionELF &>(SD.getSection()); in computeIndexMap()
956 if (MCSectionData *RelSD = createRelocationSection(Asm, SD)) { in computeIndexMap()
979 for (MCSymbolData &SD : Asm.symbols()) { in computeSymbolTable()
980 const MCSymbol &Symbol = SD.getSymbol(); in computeSymbolTable()
986 if (!isInSymtab(Layout, SD, in computeSymbolTable()
992 MSD.SymbolData = &SD; in computeSymbolTable()
997 bool Local = isLocal(SD, Used); in computeSymbolTable()
998 if (!Local && MCELF::GetBinding(SD) == ELF::STB_LOCAL) { in computeSymbolTable()
1001 MCELF::SetBinding(SD, ELF::STB_GLOBAL); in computeSymbolTable()
1007 } else if (SD.isCommon()) { in computeSymbolTable()
1016 MCELF::SetBinding(SD, ELF::STB_WEAK); in computeSymbolTable()
1064 if (MCELF::GetType(SD) != ELF::STT_SECTION) in computeSymbolTable()
1111 const MCSectionData &SD) { in createRelocationSection() argument
1112 if (Relocations[&SD].empty()) in createRelocationSection()
1117 static_cast<const MCSectionELF &>(SD.getSection()); in createRelocationSection()
1226 MCSectionData &SD) { in CompressDebugSection() argument
1228 MCSectionData::FragmentListType &Fragments = SD.getFragmentList(); in CompressDebugSection()
1239 auto I = DefiningSymbols.find(&SD); in CompressDebugSection()
1249 CompressedFragment->setParent(&SD); in CompressDebugSection()
1265 for (MCSymbolData &SD : Asm.symbols()) in CompressDebugSections()
1266 if (MCFragment *F = SD.getFragment()) in CompressDebugSections()
1267 DefiningSymbols[F->getParent()].push_back(&SD); in CompressDebugSections()
1269 for (MCSectionData &SD : Asm) { in CompressDebugSections()
1271 static_cast<const MCSectionELF &>(SD.getSection()); in CompressDebugSections()
1280 CompressDebugSection(Asm, Layout, DefiningSymbols, Section, SD); in CompressDebugSections()
1295 MCSectionData &SD = Asm.getOrCreateSectionData(*Section); in WriteRelocations() local
1299 WriteRelocationsFragment(Asm, F, &SD); in WriteRelocations()
1323 const MCSectionData *SD) { in WriteRelocationsFragment() argument
1324 std::vector<ELFRelocationEntry> &Relocs = Relocations[SD]; in WriteRelocationsFragment()
1512 bool ELFObjectWriter::IsELFMetaDataSection(const MCSectionData &SD) { in IsELFMetaDataSection() argument
1513 return SD.getOrdinal() == ~UINT32_C(0) && in IsELFMetaDataSection()
1514 !SD.getSection().isVirtualSection(); in IsELFMetaDataSection()
1517 uint64_t ELFObjectWriter::DataSectionSize(const MCSectionData &SD) { in DataSectionSize() argument
1519 for (MCSectionData::const_iterator i = SD.begin(), e = SD.end(); i != e; in DataSectionSize()
1529 const MCSectionData &SD) { in GetSectionAddressSize() argument
1530 if (IsELFMetaDataSection(SD)) in GetSectionAddressSize()
1531 return DataSectionSize(SD); in GetSectionAddressSize()
1532 return Layout.getSectionAddressSize(&SD); in GetSectionAddressSize()
1537 const MCSectionData &SD) { in writeDataSectionData() argument
1538 if (IsELFMetaDataSection(SD)) { in writeDataSectionData()
1539 for (MCSectionData::const_iterator i = SD.begin(), e = SD.end(); i != e; in writeDataSectionData()
1546 Asm.writeSectionData(&SD, Layout); in writeDataSectionData()
1566 const MCSectionData &SD = Asm.getOrCreateSectionData(Section); in writeSectionHeader() local
1574 uint64_t Size = GetSectionAddressSize(Layout, SD); in writeSectionHeader()
1577 SectionOffsetMap.lookup(&Section), Size, SD.getAlignment(), in writeSectionHeader()
1616 const MCSectionData &SD = Asm.getOrCreateSectionData(Section); in WriteObject() local
1617 uint64_t Padding = OffsetToAlignment(OS.tell(), SD.getAlignment()); in WriteObject()
1623 writeDataSectionData(Asm, Layout, SD); in WriteObject()
1661 bool ELFObjectWriter::isWeak(const MCSymbolData &SD) const { in isWeak()
1662 return ::isWeak(SD); in isWeak()