Lines Matching refs:XCOFF
68 XCOFF::StorageClass getStorageClass() const { in getStorageClass()
102 char Name[XCOFF::NameSize];
125 XCOFF::ReservedSectionNum::N_DEBUG - 1;
141 Section(const char *N, XCOFF::SectionTypeFlags Flags, bool IsVirtual, in Section()
146 strncpy(Name, N, XCOFF::NameSize); in Section()
207 XCOFF::StorageClass);
246 Strings(StringTableBuilder::XCOFF), in XCOFFObjectWriter()
247 Text(".text", XCOFF::STYP_TEXT, /* IsVirtual */ false, in XCOFFObjectWriter()
249 Data(".data", XCOFF::STYP_DATA, /* IsVirtual */ false,
251 BSS(".bss", XCOFF::STYP_BSS, /* IsVirtual */ true,
276 case XCOFF::XMC_PR: in getCsectGroup()
277 assert(XCOFF::XTY_SD == MCSec->getCSectType() && in getCsectGroup()
280 case XCOFF::XMC_RO: in getCsectGroup()
281 assert(XCOFF::XTY_SD == MCSec->getCSectType() && in getCsectGroup()
284 case XCOFF::XMC_RW: in getCsectGroup()
285 if (XCOFF::XTY_CM == MCSec->getCSectType()) in getCsectGroup()
288 if (XCOFF::XTY_SD == MCSec->getCSectType()) in getCsectGroup()
292 case XCOFF::XMC_DS: in getCsectGroup()
294 case XCOFF::XMC_BS: in getCsectGroup()
295 assert(XCOFF::XTY_CM == MCSec->getCSectType() && in getCsectGroup()
299 case XCOFF::XMC_TC0: in getCsectGroup()
300 assert(XCOFF::XTY_SD == MCSec->getCSectType() && in getCsectGroup()
306 case XCOFF::XMC_TC: in getCsectGroup()
307 case XCOFF::XMC_TE: in getCsectGroup()
308 assert(XCOFF::XTY_SD == MCSec->getCSectType() && in getCsectGroup()
333 assert(XCOFF::XTY_ER != MCSec->getCSectType() && in executePostLayoutBinding()
354 if (ContainingCsect->getCSectType() == XCOFF::XTY_ER) { in executePostLayoutBinding()
427 if (Type == XCOFF::RelocationType::R_POS) in recordRelocation()
431 else if (Type == XCOFF::RelocationType::R_TOC || in recordRelocation()
432 Type == XCOFF::RelocationType::R_TOCL) { in recordRelocation()
438 if (Type == XCOFF::RelocationType::R_TOC && !isInt<16>(TOCEntryOffset)) in recordRelocation()
471 assert(Type == XCOFF::RelocationType::R_POS && in recordRelocation()
477 const uint8_t TypeB = XCOFF::RelocationType::R_NEG; in recordRelocation()
549 return SymbolName.size() > XCOFF::NameSize; in nameShouldBeInStringTable()
557 char Name[XCOFF::NameSize+1]; in writeSymbolName()
558 std::strncpy(Name, SymbolName.data(), XCOFF::NameSize); in writeSymbolName()
559 ArrayRef<char> NameRef(Name, XCOFF::NameSize); in writeSymbolName()
592 W.write<uint8_t>(XCOFF::XTY_LD); in writeSymbolTableEntryForCsectMemberLabel()
603 XCOFF::StorageClass StorageClass) { in writeSymbolTableEntryForControlSection()
664 ArrayRef<char> NameRef(Sec->Name, XCOFF::NameSize); in writeSectionHeaderTable()
717 Csect, XCOFF::ReservedSectionNum::N_UNDEF, Csect.MCCsect->getStorageClass()); in writeSymbolTable()
755 if (CsectRelocCount >= XCOFF::RelocOverflow || in finalizeSectionInfo()
756 Section->RelocationCount >= XCOFF::RelocOverflow - CsectRelocCount) in finalizeSectionInfo()
774 Sec->RelocationCount * XCOFF::RelocationSerializationSize32; in finalizeSectionInfo()
859 uint64_t RawPointer = sizeof(XCOFF::FileHeader32) + auxiliaryHeaderSize() + in assignAddressesAndIndices()
860 SectionCount * sizeof(XCOFF::SectionHeader32); in assignAddressesAndIndices()