Lines Matching refs:ELF
1 //===- ELFAsmParser.cpp - ELF Assembly Parser -----------------------------===//
19 #include "llvm/Support/ELF.h"
81 return ParseSectionSwitch(".data", ELF::SHT_PROGBITS,
82 ELF::SHF_WRITE |ELF::SHF_ALLOC,
86 return ParseSectionSwitch(".text", ELF::SHT_PROGBITS,
87 ELF::SHF_EXECINSTR |
88 ELF::SHF_ALLOC, SectionKind::getText());
91 return ParseSectionSwitch(".bss", ELF::SHT_NOBITS,
92 ELF::SHF_WRITE |
93 ELF::SHF_ALLOC, SectionKind::getBSS());
96 return ParseSectionSwitch(".rodata", ELF::SHT_PROGBITS,
97 ELF::SHF_ALLOC,
101 return ParseSectionSwitch(".tdata", ELF::SHT_PROGBITS,
102 ELF::SHF_ALLOC |
103 ELF::SHF_TLS | ELF::SHF_WRITE,
107 return ParseSectionSwitch(".tbss", ELF::SHT_NOBITS,
108 ELF::SHF_ALLOC |
109 ELF::SHF_TLS | ELF::SHF_WRITE,
113 return ParseSectionSwitch(".data.rel", ELF::SHT_PROGBITS,
114 ELF::SHF_ALLOC |
115 ELF::SHF_WRITE,
119 return ParseSectionSwitch(".data.rel.ro", ELF::SHT_PROGBITS,
120 ELF::SHF_ALLOC |
121 ELF::SHF_WRITE,
125 return ParseSectionSwitch(".data.rel.ro.local", ELF::SHT_PROGBITS,
126 ELF::SHF_ALLOC |
127 ELF::SHF_WRITE,
131 return ParseSectionSwitch(".eh_frame", ELF::SHT_PROGBITS,
132 ELF::SHF_ALLOC |
133 ELF::SHF_WRITE,
265 if (Flags & ELF::SHF_EXECINSTR)
267 if (Flags & ELF::SHF_TLS)
278 flags |= ELF::SHF_ALLOC;
281 flags |= ELF::SHF_EXECINSTR;
284 flags |= ELF::SHF_WRITE;
287 flags |= ELF::SHF_MERGE;
290 flags |= ELF::SHF_STRINGS;
293 flags |= ELF::SHF_TLS;
296 flags |= ELF::XCORE_SHF_CP_SECTION;
299 flags |= ELF::XCORE_SHF_DP_SECTION;
302 flags |= ELF::SHF_GROUP;
344 Flags |= ELF::SHF_ALLOC;
346 Flags |= ELF::SHF_EXECINSTR;
362 bool Mergeable = Flags & ELF::SHF_MERGE;
363 bool Group = Flags & ELF::SHF_GROUP;
410 unsigned Type = ELF::SHT_PROGBITS;
414 Type = ELF::SHT_INIT_ARRAY;
416 Type = ELF::SHT_FINI_ARRAY;
418 Type = ELF::SHT_PREINIT_ARRAY;
420 Type = ELF::SHT_NOBITS;
422 Type = ELF::SHT_PROGBITS;
424 Type = ELF::SHT_NOTE;
426 Type = ELF::SHT_X86_64_UNWIND;
506 getContext().getELFSection(".comment", ELF::SHT_PROGBITS,
507 ELF::SHF_MERGE |
508 ELF::SHF_STRINGS,