Lines Matching refs:SD
51 static bool IsELFMetaDataSection(const MCSectionData &SD);
52 static uint64_t DataSectionSize(const MCSectionData &SD);
54 const MCSectionData &SD);
56 const MCSectionData &SD);
324 const MCSectionData *SD);
509 MCSymbolData &SD = Asm.getSymbolData(Symbol);
522 it->setExternal(SD.isExternal());
523 MCELF::SetBinding(*it, MCELF::GetBinding(SD));
645 const MCSymbolData &SD = Asm.getSymbolData(Symbol);
653 if (SD.isExternal()) {
729 MCSymbolData &SD = Asm.getSymbolData(ASymbol);
730 MCFragment *F = SD.getFragment();
735 Value += Layout.getSymbolOffset(&SD);
778 MCSymbolData &SD = Asm.getSymbolData(*S);
779 return SD.getIndex();
905 MCSymbolData &SD = Asm.getSymbolData(RefSymbol);
907 MCELF::SetBinding(SD, ELF::STB_GLOBAL);
987 const MCSectionData &SD = *it;
988 if (Relocations[&SD].empty())
993 static_cast<const MCSectionELF&>(SD.getSection());
1026 const MCSectionData &SD = *it;
1028 static_cast<const MCSectionELF&>(SD.getSection());
1061 const MCSectionData *SD) {
1062 std::vector<ELFRelocationEntry> &Relocs = Relocations[SD];
1368 bool ELFObjectWriter::IsELFMetaDataSection(const MCSectionData &SD) {
1369 return SD.getOrdinal() == ~UINT32_C(0) &&
1370 !SD.getSection().isVirtualSection();
1373 uint64_t ELFObjectWriter::DataSectionSize(const MCSectionData &SD) {
1375 for (MCSectionData::const_iterator i = SD.begin(), e = SD.end(); i != e;
1385 const MCSectionData &SD) {
1386 if (IsELFMetaDataSection(SD))
1387 return DataSectionSize(SD);
1388 return Layout.getSectionFileSize(&SD);
1392 const MCSectionData &SD) {
1393 if (IsELFMetaDataSection(SD))
1394 SD);
1395 return Layout.getSectionAddressSize(&SD);
1401 const MCSectionData &SD = Asm.getOrCreateSectionData(Section);
1403 uint64_t Padding = OffsetToAlignment(OS.tell(), SD.getAlignment());
1406 if (IsELFMetaDataSection(SD)) {
1407 for (MCSectionData::const_iterator i = SD.begin(), e = SD.end(); i != e;
1414 Asm.writeSectionData(&SD, Layout);
1443 const MCSectionData &SD = Asm.getOrCreateSectionData(Section);
1451 uint64_t Size = GetSectionAddressSize(Layout, SD);
1455 SD.getAlignment(), Section);
1530 const MCSectionData &SD = Asm.getOrCreateSectionData(Section);
1532 FileOff = RoundUpToAlignment(FileOff, SD.getAlignment());
1538 FileOff += GetSectionFileSize(Layout, SD);
1551 const MCSectionData &SD = Asm.getOrCreateSectionData(Section);
1553 FileOff = RoundUpToAlignment(FileOff, SD.getAlignment());
1559 FileOff += GetSectionFileSize(Layout, SD);