Lines Matching defs:ELF

12 #include "llvm/BinaryFormat/ELF.h"
327 #define HANDLE_SWIFT_SECTION(KIND, MACHO, ELF, COFF) \
380 ? ELF::SHT_X86_64_UNWIND
381 : ELF::SHT_PROGBITS;
385 unsigned EHSectionFlags = ELF::SHF_ALLOC;
387 EHSectionFlags |= ELF::SHF_WRITE;
389 // ELF
390 BSSSection = Ctx->getELFSection(".bss", ELF::SHT_NOBITS,
391 ELF::SHF_WRITE | ELF::SHF_ALLOC);
393 TextSection = Ctx->getELFSection(".text", ELF::SHT_PROGBITS,
394 ELF::SHF_EXECINSTR | ELF::SHF_ALLOC);
396 DataSection = Ctx->getELFSection(".data", ELF::SHT_PROGBITS,
397 ELF::SHF_WRITE | ELF::SHF_ALLOC);
400 Ctx->getELFSection(".rodata", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
403 Ctx->getELFSection(".tdata", ELF::SHT_PROGBITS,
404 ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE);
407 ".tbss", ELF::SHT_NOBITS, ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE);
409 DataRelROSection = Ctx->getELFSection(".data.rel.ro", ELF::SHT_PROGBITS,
410 ELF::SHF_ALLOC | ELF::SHF_WRITE);
413 Ctx->getELFSection(".rodata.cst4", ELF::SHT_PROGBITS,
414 ELF::SHF_ALLOC | ELF::SHF_MERGE, 4);
417 Ctx->getELFSection(".rodata.cst8", ELF::SHT_PROGBITS,
418 ELF::SHF_ALLOC | ELF::SHF_MERGE, 8);
421 Ctx->getELFSection(".rodata.cst16", ELF::SHT_PROGBITS,
422 ELF::SHF_ALLOC | ELF::SHF_MERGE, 16);
425 Ctx->getELFSection(".rodata.cst32", ELF::SHT_PROGBITS,
426 ELF::SHF_ALLOC | ELF::SHF_MERGE, 32);
430 // FIXME: We're emitting LSDA info into a readonly section on ELF, even though
434 LSDASection = Ctx->getELFSection(".gcc_except_table", ELF::SHT_PROGBITS,
435 ELF::SHF_ALLOC);
440 unsigned DebugSecType = ELF::SHT_PROGBITS;
446 DebugSecType = ELF::SHT_MIPS_DWARF;
455 ELF::SHF_MERGE | ELF::SHF_STRINGS, 1);
467 ELF::SHF_MERGE | ELF::SHF_STRINGS, 1);
481 Ctx->getELFSection(".debug_names", ELF::SHT_PROGBITS, 0);
483 Ctx->getELFSection(".apple_names", ELF::SHT_PROGBITS, 0);
485 Ctx->getELFSection(".apple_objc", ELF::SHT_PROGBITS, 0);
487 Ctx->getELFSection(".apple_namespaces", ELF::SHT_PROGBITS, 0);
489 Ctx->getELFSection(".apple_types", ELF::SHT_PROGBITS, 0);
500 Ctx->getELFSection(".debug_info.dwo", DebugSecType, ELF::SHF_EXCLUDE);
502 Ctx->getELFSection(".debug_types.dwo", DebugSecType, ELF::SHF_EXCLUDE);
504 Ctx->getELFSection(".debug_abbrev.dwo", DebugSecType, ELF::SHF_EXCLUDE);
507 ELF::SHF_MERGE | ELF::SHF_STRINGS | ELF::SHF_EXCLUDE, 1);
509 Ctx->getELFSection(".debug_line.dwo", DebugSecType, ELF::SHF_EXCLUDE);
511 Ctx->getELFSection(".debug_loc.dwo", DebugSecType, ELF::SHF_EXCLUDE);
513 DebugSecType, ELF::SHF_EXCLUDE);
515 Ctx->getELFSection(".debug_rnglists.dwo", DebugSecType, ELF::SHF_EXCLUDE);
517 Ctx->getELFSection(".debug_macinfo.dwo", DebugSecType, ELF::SHF_EXCLUDE);
519 Ctx->getELFSection(".debug_macro.dwo", DebugSecType, ELF::SHF_EXCLUDE);
522 Ctx->getELFSection(".debug_loclists.dwo", DebugSecType, ELF::SHF_EXCLUDE);
531 Ctx->getELFSection(".llvm_stackmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
534 Ctx->getELFSection(".llvm_faultmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
539 StackSizesSection = Ctx->getELFSection(".stack_sizes", ELF::SHT_PROGBITS, 0);
545 LLVMStatsSection = Ctx->getELFSection(".llvm_stats", ELF::SHT_PROGBITS, 0);
1064 case Triple::ELF:
1065 return Ctx->getELFSection(Name, ELF::SHT_PROGBITS, ELF::SHF_GROUP, 0,
1091 unsigned Flags = ELF::SHF_LINK_ORDER;
1095 Flags |= ELF::SHF_GROUP;
1098 return Ctx->getELFSection(".stack_sizes", ELF::SHT_PROGBITS, Flags, 0,
1109 unsigned Flags = ELF::SHF_LINK_ORDER;
1113 Flags |= ELF::SHF_GROUP;
1118 return Ctx->getELFSection(".llvm_bb_addr_map", ELF::SHT_LLVM_BB_ADDR_MAP,
1129 unsigned Flags = ELF::SHF_LINK_ORDER | ELF::SHF_ALLOC;
1133 Flags |= ELF::SHF_GROUP;
1136 return Ctx->getELFSection(".kcfi_traps", ELF::SHT_PROGBITS, Flags, 0,
1148 unsigned Flags = ELF::SHF_LINK_ORDER;
1152 Flags |= ELF::SHF_GROUP;
1155 return Ctx->getELFSection(PseudoProbeSection->getName(), ELF::SHT_PROGBITS,
1174 auto Flags = S->getFlags() | ELF::SHF_GROUP;
1194 unsigned Flags = ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_LINK_ORDER;
1203 Flags |= ELF::SHF_GROUP;
1205 return Ctx->getELFSection(Name, ELF::SHT_PROGBITS, Flags, 0, GroupName, true,