Lines Matching refs:ELF

92     return ParseSectionSwitch(".data", ELF::SHT_PROGBITS,  in ParseSectionDirectiveData()
93 ELF::SHF_WRITE | ELF::SHF_ALLOC, in ParseSectionDirectiveData()
97 return ParseSectionSwitch(".text", ELF::SHT_PROGBITS, in ParseSectionDirectiveText()
98 ELF::SHF_EXECINSTR | in ParseSectionDirectiveText()
99 ELF::SHF_ALLOC, SectionKind::getText()); in ParseSectionDirectiveText()
102 return ParseSectionSwitch(".bss", ELF::SHT_NOBITS, in ParseSectionDirectiveBSS()
103 ELF::SHF_WRITE | in ParseSectionDirectiveBSS()
104 ELF::SHF_ALLOC, SectionKind::getBSS()); in ParseSectionDirectiveBSS()
107 return ParseSectionSwitch(".rodata", ELF::SHT_PROGBITS, in ParseSectionDirectiveRoData()
108 ELF::SHF_ALLOC, in ParseSectionDirectiveRoData()
112 return ParseSectionSwitch(".tdata", ELF::SHT_PROGBITS, in ParseSectionDirectiveTData()
113 ELF::SHF_ALLOC | in ParseSectionDirectiveTData()
114 ELF::SHF_TLS | ELF::SHF_WRITE, in ParseSectionDirectiveTData()
118 return ParseSectionSwitch(".tbss", ELF::SHT_NOBITS, in ParseSectionDirectiveTBSS()
119 ELF::SHF_ALLOC | in ParseSectionDirectiveTBSS()
120 ELF::SHF_TLS | ELF::SHF_WRITE, in ParseSectionDirectiveTBSS()
124 return ParseSectionSwitch(".data.rel", ELF::SHT_PROGBITS, in ParseSectionDirectiveDataRel()
125 ELF::SHF_ALLOC | ELF::SHF_WRITE, in ParseSectionDirectiveDataRel()
129 return ParseSectionSwitch(".data.rel.ro", ELF::SHT_PROGBITS, in ParseSectionDirectiveDataRelRo()
130 ELF::SHF_ALLOC | in ParseSectionDirectiveDataRelRo()
131 ELF::SHF_WRITE, in ParseSectionDirectiveDataRelRo()
135 return ParseSectionSwitch(".eh_frame", ELF::SHT_PROGBITS, in ParseSectionDirectiveEhFrame()
136 ELF::SHF_ALLOC | ELF::SHF_WRITE, in ParseSectionDirectiveEhFrame()
297 flags |= ELF::SHF_ALLOC; in parseSectionFlags()
300 flags |= ELF::SHF_EXCLUDE; in parseSectionFlags()
303 flags |= ELF::SHF_EXECINSTR; in parseSectionFlags()
306 flags |= ELF::SHF_WRITE; in parseSectionFlags()
309 flags |= ELF::SHF_LINK_ORDER; in parseSectionFlags()
312 flags |= ELF::SHF_MERGE; in parseSectionFlags()
315 flags |= ELF::SHF_STRINGS; in parseSectionFlags()
318 flags |= ELF::SHF_TLS; in parseSectionFlags()
323 flags |= ELF::XCORE_SHF_CP_SECTION; in parseSectionFlags()
328 flags |= ELF::XCORE_SHF_DP_SECTION; in parseSectionFlags()
333 flags |= ELF::SHF_ARM_PURECODE; in parseSectionFlags()
338 flags |= ELF::SHF_HEX_GPREL; in parseSectionFlags()
341 flags |= ELF::SHF_GROUP; in parseSectionFlags()
346 flags |= ELF::SHF_X86_64_LARGE; in parseSectionFlags()
350 flags |= ELF::SHF_SUNW_NODISCARD; in parseSectionFlags()
352 flags |= ELF::SHF_GNU_RETAIN; in parseSectionFlags()
375 flags |= ELF::SHF_ALLOC; in parseSunStyleSectionFlags()
377 flags |= ELF::SHF_EXECINSTR; in parseSunStyleSectionFlags()
379 flags |= ELF::SHF_WRITE; in parseSunStyleSectionFlags()
381 flags |= ELF::SHF_TLS; in parseSunStyleSectionFlags()
528 return SectionName == ".eh_frame" && Type == ELF::SHT_PROGBITS; in allowSectionTypeMismatch()
534 return SectionName.starts_with(".debug_") && Type == ELF::SHT_PROGBITS; in allowSectionTypeMismatch()
558 Flags |= ELF::SHF_ALLOC; in ParseSectionArguments()
561 Flags |= ELF::SHF_ALLOC | ELF::SHF_EXECINSTR; in ParseSectionArguments()
567 Flags |= ELF::SHF_ALLOC | ELF::SHF_WRITE; in ParseSectionArguments()
569 Flags |= ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_TLS; in ParseSectionArguments()
597 bool Mergeable = Flags & ELF::SHF_MERGE; in ParseSectionArguments()
598 bool Group = Flags & ELF::SHF_GROUP; in ParseSectionArguments()
619 if (Flags & ELF::SHF_LINK_ORDER) in ParseSectionArguments()
634 unsigned Type = ELF::SHT_PROGBITS; in ParseSectionArguments()
638 Type = ELF::SHT_NOTE; in ParseSectionArguments()
640 Type = ELF::SHT_INIT_ARRAY; in ParseSectionArguments()
642 Type = ELF::SHT_NOBITS; in ParseSectionArguments()
644 Type = ELF::SHT_NOBITS; in ParseSectionArguments()
646 Type = ELF::SHT_FINI_ARRAY; in ParseSectionArguments()
648 Type = ELF::SHT_PREINIT_ARRAY; in ParseSectionArguments()
651 Type = ELF::SHT_INIT_ARRAY; in ParseSectionArguments()
653 Type = ELF::SHT_FINI_ARRAY; in ParseSectionArguments()
655 Type = ELF::SHT_PREINIT_ARRAY; in ParseSectionArguments()
657 Type = ELF::SHT_NOBITS; in ParseSectionArguments()
659 Type = ELF::SHT_PROGBITS; in ParseSectionArguments()
661 Type = ELF::SHT_NOTE; in ParseSectionArguments()
663 Type = ELF::SHT_X86_64_UNWIND; in ParseSectionArguments()
665 Type = ELF::SHT_LLVM_ODRTAB; in ParseSectionArguments()
667 Type = ELF::SHT_LLVM_LINKER_OPTIONS; in ParseSectionArguments()
669 Type = ELF::SHT_LLVM_CALL_GRAPH_PROFILE; in ParseSectionArguments()
671 Type = ELF::SHT_LLVM_DEPENDENT_LIBRARIES; in ParseSectionArguments()
673 Type = ELF::SHT_LLVM_SYMPART; in ParseSectionArguments()
675 Type = ELF::SHT_LLVM_BB_ADDR_MAP; in ParseSectionArguments()
677 Type = ELF::SHT_LLVM_OFFLOADING; in ParseSectionArguments()
679 Type = ELF::SHT_LLVM_LTO; in ParseSectionArguments()
691 Flags |= ELF::SHF_GROUP; in ParseSectionArguments()
716 (Section->getFlags() & ELF::SHF_ALLOC) && in ParseSectionArguments()
717 (Section->getFlags() & ELF::SHF_EXECINSTR)) { in ParseSectionArguments()
878 MCSection *Note = getContext().getELFSection(".note", ELF::SHT_NOTE, 0); in ParseDirectiveVersion()