LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MCObjectFileInfo.cpp
Go to the documentation of this file.
1 //===-- MObjectFileInfo.cpp - Object File Information ---------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
11 #include "llvm/ADT/Triple.h"
12 #include "llvm/MC/MCContext.h"
13 #include "llvm/MC/MCSection.h"
14 #include "llvm/MC/MCSectionCOFF.h"
15 #include "llvm/MC/MCSectionELF.h"
16 #include "llvm/MC/MCSectionMachO.h"
17 using namespace llvm;
18 
19 void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) {
20  // MachO
23 
29 
30  // .comm doesn't support alignment before Leopard.
31  if (T.isMacOSX() && T.isMacOSXVersionLT(10, 5))
33 
34  TextSection // .text
35  = Ctx->getMachOSection("__TEXT", "__text",
36  MCSectionMachO::S_ATTR_PURE_INSTRUCTIONS,
38  DataSection // .data
39  = Ctx->getMachOSection("__DATA", "__data", 0,
41 
42  // BSSSection might not be expected initialized on msvc.
43  BSSSection = 0;
44 
45  TLSDataSection // .tdata
46  = Ctx->getMachOSection("__DATA", "__thread_data",
49  TLSBSSSection // .tbss
50  = Ctx->getMachOSection("__DATA", "__thread_bss",
53 
54  // TODO: Verify datarel below.
55  TLSTLVSection // .tlv
56  = Ctx->getMachOSection("__DATA", "__thread_vars",
59 
61  = Ctx->getMachOSection("__DATA", "__thread_init",
64 
65  CStringSection // .cstring
66  = Ctx->getMachOSection("__TEXT", "__cstring",
70  = Ctx->getMachOSection("__TEXT","__ustring", 0,
72  FourByteConstantSection // .literal4
73  = Ctx->getMachOSection("__TEXT", "__literal4",
76  EightByteConstantSection // .literal8
77  = Ctx->getMachOSection("__TEXT", "__literal8",
80 
81  // ld_classic doesn't support .literal16 in 32-bit mode, and ld64 falls back
82  // to using it in -static mode.
84  if (RelocM != Reloc::Static &&
85  T.getArch() != Triple::x86_64 && T.getArch() != Triple::ppc64 &&
86  T.getArch() != Triple::ppc64le)
87  SixteenByteConstantSection = // .literal16
88  Ctx->getMachOSection("__TEXT", "__literal16",
91 
92  ReadOnlySection // .const
93  = Ctx->getMachOSection("__TEXT", "__const", 0,
95 
97  = Ctx->getMachOSection("__TEXT", "__textcoal_nt",
99  MCSectionMachO::S_ATTR_PURE_INSTRUCTIONS,
102  = Ctx->getMachOSection("__TEXT", "__const_coal",
105  ConstDataSection // .const_data
106  = Ctx->getMachOSection("__DATA", "__const", 0,
109  = Ctx->getMachOSection("__DATA","__datacoal_nt",
113  = Ctx->getMachOSection("__DATA","__common",
117  = Ctx->getMachOSection("__DATA","__bss", MCSectionMachO::S_ZEROFILL,
119 
120 
122  = Ctx->getMachOSection("__DATA", "__la_symbol_ptr",
126  = Ctx->getMachOSection("__DATA", "__nl_symbol_ptr",
129 
130  if (RelocM == Reloc::Static) {
132  = Ctx->getMachOSection("__TEXT", "__constructor", 0,
135  = Ctx->getMachOSection("__TEXT", "__destructor", 0,
137  } else {
139  = Ctx->getMachOSection("__DATA", "__mod_init_func",
143  = Ctx->getMachOSection("__DATA", "__mod_term_func",
146  }
147 
148  // Exception Handling.
149  LSDASection = Ctx->getMachOSection("__TEXT", "__gcc_except_tab", 0,
151 
152  if (T.isMacOSX() && !T.isMacOSXVersionLT(10, 6)) {
154  Ctx->getMachOSection("__LD", "__compact_unwind",
155  MCSectionMachO::S_ATTR_DEBUG,
157 
158  if (T.getArch() == Triple::x86_64 || T.getArch() == Triple::x86)
159  CompactUnwindDwarfEHFrameOnly = 0x04000000;
160  }
161 
162  // Debug Information.
164  Ctx->getMachOSection("__DWARF", "__apple_names",
165  MCSectionMachO::S_ATTR_DEBUG,
168  Ctx->getMachOSection("__DWARF", "__apple_objc",
169  MCSectionMachO::S_ATTR_DEBUG,
171  // 16 character section limit...
173  Ctx->getMachOSection("__DWARF", "__apple_namespac",
174  MCSectionMachO::S_ATTR_DEBUG,
177  Ctx->getMachOSection("__DWARF", "__apple_types",
178  MCSectionMachO::S_ATTR_DEBUG,
180 
182  Ctx->getMachOSection("__DWARF", "__debug_abbrev",
183  MCSectionMachO::S_ATTR_DEBUG,
186  Ctx->getMachOSection("__DWARF", "__debug_info",
187  MCSectionMachO::S_ATTR_DEBUG,
190  Ctx->getMachOSection("__DWARF", "__debug_line",
191  MCSectionMachO::S_ATTR_DEBUG,
194  Ctx->getMachOSection("__DWARF", "__debug_frame",
195  MCSectionMachO::S_ATTR_DEBUG,
198  Ctx->getMachOSection("__DWARF", "__debug_pubnames",
199  MCSectionMachO::S_ATTR_DEBUG,
202  Ctx->getMachOSection("__DWARF", "__debug_pubtypes",
203  MCSectionMachO::S_ATTR_DEBUG,
206  Ctx->getMachOSection("__DWARF", "__debug_gnu_pubn",
207  MCSectionMachO::S_ATTR_DEBUG,
210  Ctx->getMachOSection("__DWARF", "__debug_gnu_pubt",
211  MCSectionMachO::S_ATTR_DEBUG,
214  Ctx->getMachOSection("__DWARF", "__debug_str",
215  MCSectionMachO::S_ATTR_DEBUG,
218  Ctx->getMachOSection("__DWARF", "__debug_loc",
219  MCSectionMachO::S_ATTR_DEBUG,
222  Ctx->getMachOSection("__DWARF", "__debug_aranges",
223  MCSectionMachO::S_ATTR_DEBUG,
226  Ctx->getMachOSection("__DWARF", "__debug_ranges",
227  MCSectionMachO::S_ATTR_DEBUG,
230  Ctx->getMachOSection("__DWARF", "__debug_macinfo",
231  MCSectionMachO::S_ATTR_DEBUG,
234  Ctx->getMachOSection("__DWARF", "__debug_inlined",
235  MCSectionMachO::S_ATTR_DEBUG,
238  Ctx->getMachOSection("__LLVM_STACKMAPS", "__llvm_stackmaps", 0,
240 
242 }
243 
244 void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
245  if (T.getArch() == Triple::mips ||
246  T.getArch() == Triple::mipsel)
248  else if (T.getArch() == Triple::mips64 ||
249  T.getArch() == Triple::mips64el)
251  else
253 
254  if (T.getArch() == Triple::x86) {
255  PersonalityEncoding = (RelocM == Reloc::PIC_)
258  LSDAEncoding = (RelocM == Reloc::PIC_)
261  FDEEncoding = (RelocM == Reloc::PIC_)
264  TTypeEncoding = (RelocM == Reloc::PIC_)
267  } else if (T.getArch() == Triple::x86_64) {
268  if (RelocM == Reloc::PIC_) {
270  ((CMModel == CodeModel::Small || CMModel == CodeModel::Medium)
273  (CMModel == CodeModel::Small
277  ((CMModel == CodeModel::Small || CMModel == CodeModel::Medium)
278  ? dwarf::DW_EH_PE_sdata4 : dwarf::DW_EH_PE_sdata8);
279  } else {
281  (CMModel == CodeModel::Small || CMModel == CodeModel::Medium)
283  LSDAEncoding = (CMModel == CodeModel::Small)
286  TTypeEncoding = (CMModel == CodeModel::Small)
288  }
289  } else if (T.getArch() == Triple::aarch64) {
290  // The small model guarantees static code/data size < 4GB, but not where it
291  // will be in memory. Most of these could end up >2GB away so even a signed
292  // pc-relative 32-bit address is insufficient, theoretically.
293  if (RelocM == Reloc::PIC_) {
300  } else {
305  }
306  } else if (T.getArch() == Triple::ppc64 || T.getArch() == Triple::ppc64le) {
313  } else if (T.getArch() == Triple::systemz) {
314  // All currently-defined code models guarantee that 4-byte PC-relative
315  // values will be in range.
316  if (RelocM == Reloc::PIC_) {
323  } else {
328  }
329  }
330 
331  // Solaris requires different flags for .eh_frame to seemingly every other
332  // platform.
333  EHSectionType = ELF::SHT_PROGBITS;
334  EHSectionFlags = ELF::SHF_ALLOC;
335  if (T.getOS() == Triple::Solaris) {
336  if (T.getArch() == Triple::x86_64)
337  EHSectionType = ELF::SHT_X86_64_UNWIND;
338  else
339  EHSectionFlags |= ELF::SHF_WRITE;
340  }
341 
342 
343  // ELF
344  BSSSection =
345  Ctx->getELFSection(".bss", ELF::SHT_NOBITS,
346  ELF::SHF_WRITE | ELF::SHF_ALLOC,
348 
349  TextSection =
350  Ctx->getELFSection(".text", ELF::SHT_PROGBITS,
351  ELF::SHF_EXECINSTR |
352  ELF::SHF_ALLOC,
354 
355  DataSection =
356  Ctx->getELFSection(".data", ELF::SHT_PROGBITS,
357  ELF::SHF_WRITE |ELF::SHF_ALLOC,
359 
361  Ctx->getELFSection(".rodata", ELF::SHT_PROGBITS,
362  ELF::SHF_ALLOC,
364 
366  Ctx->getELFSection(".tdata", ELF::SHT_PROGBITS,
367  ELF::SHF_ALLOC | ELF::SHF_TLS |
368  ELF::SHF_WRITE,
370 
371  TLSBSSSection =
372  Ctx->getELFSection(".tbss", ELF::SHT_NOBITS,
373  ELF::SHF_ALLOC | ELF::SHF_TLS |
374  ELF::SHF_WRITE,
376 
378  Ctx->getELFSection(".data.rel", ELF::SHT_PROGBITS,
379  ELF::SHF_ALLOC |ELF::SHF_WRITE,
381 
383  Ctx->getELFSection(".data.rel.local", ELF::SHT_PROGBITS,
384  ELF::SHF_ALLOC |ELF::SHF_WRITE,
386 
388  Ctx->getELFSection(".data.rel.ro", ELF::SHT_PROGBITS,
389  ELF::SHF_ALLOC |ELF::SHF_WRITE,
391 
393  Ctx->getELFSection(".data.rel.ro.local", ELF::SHT_PROGBITS,
394  ELF::SHF_ALLOC |ELF::SHF_WRITE,
396 
398  Ctx->getELFSection(".rodata.cst4", ELF::SHT_PROGBITS,
399  ELF::SHF_ALLOC |ELF::SHF_MERGE,
401 
403  Ctx->getELFSection(".rodata.cst8", ELF::SHT_PROGBITS,
404  ELF::SHF_ALLOC |ELF::SHF_MERGE,
406 
408  Ctx->getELFSection(".rodata.cst16", ELF::SHT_PROGBITS,
409  ELF::SHF_ALLOC |ELF::SHF_MERGE,
411 
413  Ctx->getELFSection(".ctors", ELF::SHT_PROGBITS,
414  ELF::SHF_ALLOC |ELF::SHF_WRITE,
416 
418  Ctx->getELFSection(".dtors", ELF::SHT_PROGBITS,
419  ELF::SHF_ALLOC |ELF::SHF_WRITE,
421 
422  // Exception Handling Sections.
423 
424  // FIXME: We're emitting LSDA info into a readonly section on ELF, even though
425  // it contains relocatable pointers. In PIC mode, this is probably a big
426  // runtime hit for C++ apps. Either the contents of the LSDA need to be
427  // adjusted or this should be a data section.
428  LSDASection =
429  Ctx->getELFSection(".gcc_except_table", ELF::SHT_PROGBITS,
430  ELF::SHF_ALLOC,
432 
433  // Debug Info Sections.
435  Ctx->getELFSection(".debug_abbrev", ELF::SHT_PROGBITS, 0,
438  Ctx->getELFSection(".debug_info", ELF::SHT_PROGBITS, 0,
441  Ctx->getELFSection(".debug_line", ELF::SHT_PROGBITS, 0,
444  Ctx->getELFSection(".debug_frame", ELF::SHT_PROGBITS, 0,
447  Ctx->getELFSection(".debug_pubnames", ELF::SHT_PROGBITS, 0,
450  Ctx->getELFSection(".debug_pubtypes", ELF::SHT_PROGBITS, 0,
453  Ctx->getELFSection(".debug_gnu_pubnames", ELF::SHT_PROGBITS, 0,
456  Ctx->getELFSection(".debug_gnu_pubtypes", ELF::SHT_PROGBITS, 0,
459  Ctx->getELFSection(".debug_str", ELF::SHT_PROGBITS,
460  ELF::SHF_MERGE | ELF::SHF_STRINGS,
463  Ctx->getELFSection(".debug_loc", ELF::SHT_PROGBITS, 0,
466  Ctx->getELFSection(".debug_aranges", ELF::SHT_PROGBITS, 0,
469  Ctx->getELFSection(".debug_ranges", ELF::SHT_PROGBITS, 0,
472  Ctx->getELFSection(".debug_macinfo", ELF::SHT_PROGBITS, 0,
474 
475  // DWARF5 Experimental Debug Info
476 
477  // Accelerator Tables
479  Ctx->getELFSection(".apple_names", ELF::SHT_PROGBITS, 0,
482  Ctx->getELFSection(".apple_objc", ELF::SHT_PROGBITS, 0,
485  Ctx->getELFSection(".apple_namespaces", ELF::SHT_PROGBITS, 0,
488  Ctx->getELFSection(".apple_types", ELF::SHT_PROGBITS, 0,
490 
491  // Fission Sections
493  Ctx->getELFSection(".debug_info.dwo", ELF::SHT_PROGBITS, 0,
496  Ctx->getELFSection(".debug_abbrev.dwo", ELF::SHT_PROGBITS, 0,
499  Ctx->getELFSection(".debug_str.dwo", ELF::SHT_PROGBITS,
500  ELF::SHF_MERGE | ELF::SHF_STRINGS,
503  Ctx->getELFSection(".debug_line.dwo", ELF::SHT_PROGBITS, 0,
506  Ctx->getELFSection(".debug_loc.dwo", ELF::SHT_PROGBITS, 0,
509  Ctx->getELFSection(".debug_str_offsets.dwo", ELF::SHT_PROGBITS, 0,
512  Ctx->getELFSection(".debug_addr", ELF::SHT_PROGBITS, 0,
514 }
515 
516 
517 void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) {
518  // COFF
519  BSSSection =
520  Ctx->getCOFFSection(".bss",
521  COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA |
522  COFF::IMAGE_SCN_MEM_READ |
523  COFF::IMAGE_SCN_MEM_WRITE,
525  TextSection =
526  Ctx->getCOFFSection(".text",
527  COFF::IMAGE_SCN_CNT_CODE |
528  COFF::IMAGE_SCN_MEM_EXECUTE |
529  COFF::IMAGE_SCN_MEM_READ,
531  DataSection =
532  Ctx->getCOFFSection(".data",
533  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
534  COFF::IMAGE_SCN_MEM_READ |
535  COFF::IMAGE_SCN_MEM_WRITE,
538  Ctx->getCOFFSection(".rdata",
539  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
540  COFF::IMAGE_SCN_MEM_READ,
542  if (T.getOS() == Triple::Win32) {
544  Ctx->getCOFFSection(".CRT$XCU",
545  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
546  COFF::IMAGE_SCN_MEM_READ,
548  } else {
550  Ctx->getCOFFSection(".ctors",
551  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
552  COFF::IMAGE_SCN_MEM_READ |
553  COFF::IMAGE_SCN_MEM_WRITE,
555  }
556 
557 
558  if (T.getOS() == Triple::Win32) {
560  Ctx->getCOFFSection(".CRT$XTX",
561  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
562  COFF::IMAGE_SCN_MEM_READ,
564  } else {
566  Ctx->getCOFFSection(".dtors",
567  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
568  COFF::IMAGE_SCN_MEM_READ |
569  COFF::IMAGE_SCN_MEM_WRITE,
571  }
572 
573  // FIXME: We're emitting LSDA info into a readonly section on COFF, even
574  // though it contains relocatable pointers. In PIC mode, this is probably a
575  // big runtime hit for C++ apps. Either the contents of the LSDA need to be
576  // adjusted or this should be a data section.
577  LSDASection =
578  Ctx->getCOFFSection(".gcc_except_table",
579  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
580  COFF::IMAGE_SCN_MEM_READ,
582 
583  // Debug info.
585  Ctx->getCOFFSection(".debug_abbrev",
586  COFF::IMAGE_SCN_MEM_DISCARDABLE |
587  COFF::IMAGE_SCN_MEM_READ,
590  Ctx->getCOFFSection(".debug_info",
591  COFF::IMAGE_SCN_MEM_DISCARDABLE |
592  COFF::IMAGE_SCN_MEM_READ,
595  Ctx->getCOFFSection(".debug_line",
596  COFF::IMAGE_SCN_MEM_DISCARDABLE |
597  COFF::IMAGE_SCN_MEM_READ,
600  Ctx->getCOFFSection(".debug_frame",
601  COFF::IMAGE_SCN_MEM_DISCARDABLE |
602  COFF::IMAGE_SCN_MEM_READ,
605  Ctx->getCOFFSection(".debug_pubnames",
606  COFF::IMAGE_SCN_MEM_DISCARDABLE |
607  COFF::IMAGE_SCN_MEM_READ,
610  Ctx->getCOFFSection(".debug_pubtypes",
611  COFF::IMAGE_SCN_MEM_DISCARDABLE |
612  COFF::IMAGE_SCN_MEM_READ,
615  Ctx->getCOFFSection(".debug_gnu_pubnames",
616  COFF::IMAGE_SCN_MEM_DISCARDABLE |
617  COFF::IMAGE_SCN_MEM_READ,
620  Ctx->getCOFFSection(".debug_gnu_pubtypes",
621  COFF::IMAGE_SCN_MEM_DISCARDABLE |
622  COFF::IMAGE_SCN_MEM_READ,
625  Ctx->getCOFFSection(".debug_str",
626  COFF::IMAGE_SCN_MEM_DISCARDABLE |
627  COFF::IMAGE_SCN_MEM_READ,
630  Ctx->getCOFFSection(".debug_loc",
631  COFF::IMAGE_SCN_MEM_DISCARDABLE |
632  COFF::IMAGE_SCN_MEM_READ,
635  Ctx->getCOFFSection(".debug_aranges",
636  COFF::IMAGE_SCN_MEM_DISCARDABLE |
637  COFF::IMAGE_SCN_MEM_READ,
640  Ctx->getCOFFSection(".debug_ranges",
641  COFF::IMAGE_SCN_MEM_DISCARDABLE |
642  COFF::IMAGE_SCN_MEM_READ,
645  Ctx->getCOFFSection(".debug_macinfo",
646  COFF::IMAGE_SCN_MEM_DISCARDABLE |
647  COFF::IMAGE_SCN_MEM_READ,
649 
651  Ctx->getCOFFSection(".drectve",
652  COFF::IMAGE_SCN_LNK_INFO,
654 
655  PDataSection =
656  Ctx->getCOFFSection(".pdata",
657  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
658  COFF::IMAGE_SCN_MEM_READ,
660 
661  XDataSection =
662  Ctx->getCOFFSection(".xdata",
663  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
664  COFF::IMAGE_SCN_MEM_READ,
667  Ctx->getCOFFSection(".tls$",
668  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
669  COFF::IMAGE_SCN_MEM_READ |
670  COFF::IMAGE_SCN_MEM_WRITE,
672 }
673 
675  CodeModel::Model cm,
676  MCContext &ctx) {
677  RelocM = relocm;
678  CMModel = cm;
679  Ctx = &ctx;
680 
681  // Common.
685 
688 
690 
691  EHFrameSection = 0; // Created on demand.
692  CompactUnwindSection = 0; // Used only by selected targets.
693  DwarfAccelNamesSection = 0; // Used only by selected targets.
694  DwarfAccelObjCSection = 0; // Used only by selected targets.
695  DwarfAccelNamespaceSection = 0; // Used only by selected targets.
696  DwarfAccelTypesSection = 0; // Used only by selected targets.
697 
698  Triple T(TT);
699  Triple::ArchType Arch = T.getArch();
700  // FIXME: Checking for Arch here to filter out bogus triples such as
701  // cellspu-apple-darwin. Perhaps we should fix in Triple?
702  if ((Arch == Triple::x86 || Arch == Triple::x86_64 ||
703  Arch == Triple::arm || Arch == Triple::thumb ||
704  Arch == Triple::ppc || Arch == Triple::ppc64 ||
705  Arch == Triple::UnknownArch) &&
706  (T.isOSDarwin() || T.getEnvironment() == Triple::MachO)) {
707  Env = IsMachO;
708  InitMachOMCObjectFileInfo(T);
709  } else if ((Arch == Triple::x86 || Arch == Triple::x86_64) &&
710  (T.getEnvironment() != Triple::ELF) &&
711  (T.getOS() == Triple::MinGW32 || T.getOS() == Triple::Cygwin ||
712  T.getOS() == Triple::Win32)) {
713  Env = IsCOFF;
714  InitCOFFMCObjectFileInfo(T);
715  } else {
716  Env = IsELF;
717  InitELFMCObjectFileInfo(T);
718  }
719 }
720 
721 void MCObjectFileInfo::InitEHFrameSection() {
722  if (Env == IsMachO)
724  Ctx->getMachOSection("__TEXT", "__eh_frame",
726  MCSectionMachO::S_ATTR_NO_TOC |
727  MCSectionMachO::S_ATTR_STRIP_STATIC_SYMS |
728  MCSectionMachO::S_ATTR_LIVE_SUPPORT,
730  else if (Env == IsELF)
732  Ctx->getELFSection(".eh_frame", EHSectionType,
735  else
737  Ctx->getCOFFSection(".eh_frame",
738  COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
739  COFF::IMAGE_SCN_MEM_READ |
740  COFF::IMAGE_SCN_MEM_WRITE,
742 }
const MCSection * NonLazySymbolPointerSection
OSType getOS() const
getOS - Get the parsed operating system type of this triple.
Definition: Triple.h:178
const MCSection * DwarfARangesSection
const MCSection * DwarfFrameSection
static SectionKind getReadOnlyWithRelLocal()
Definition: SectionKind.h:233
const MCSection * DataRelROSection
const MCSection * DwarfAbbrevDWOSection
const MCSection * DwarfStrDWOSection
const MCSection * DwarfAccelTypesSection
const MCSection * StaticDtorSection
const MCSectionELF * getELFSection(StringRef Section, unsigned Type, unsigned Flags, SectionKind Kind)
Definition: MCContext.cpp:244
static SectionKind getDataRel()
Definition: SectionKind.h:229
const MCSection * ConstTextCoalSection
static SectionKind getDataRelLocal()
Definition: SectionKind.h:230
static SectionKind getMergeableConst8()
Definition: SectionKind.h:221
static SectionKind getMergeableConst16()
Definition: SectionKind.h:222
const MCSection * DataCoalSection
static SectionKind getMergeable1ByteCString()
Definition: SectionKind.h:210
const MCSection * DwarfStrSection
const MCSection * StackMapSection
StackMap section.
static SectionKind getMergeableConst4()
Definition: SectionKind.h:220
const MCSection * DataBSSSection
const MCSection * DwarfInfoSection
bool isMacOSX() const
Definition: Triple.h:303
const MCSection * DwarfAccelNamespaceSection
const MCSection * DwarfAbbrevSection
const MCSection * EightByteConstantSection
static SectionKind getBSS()
Definition: SectionKind.h:225
const MCSection * DataRelSection
const MCSection * DwarfLocSection
const MCSection * DwarfPubNamesSection
unsigned isMacOSXVersionLT(unsigned Major, unsigned Minor=0, unsigned Micro=0) const
Definition: Triple.h:288
const MCSection * DwarfDebugInlineSection
#define T
ArchType getArch() const
getArch - Get the parsed architecture type of this triple.
Definition: Triple.h:172
const MCSection * DwarfMacroInfoSection
static SectionKind getThreadData()
Definition: SectionKind.h:224
const MCSection * DwarfLineSection
const MCSection * LazySymbolPointerSection
const MCSection * DwarfGnuPubTypesSection
void InitMCObjectFileInfo(StringRef TT, Reloc::Model RM, CodeModel::Model CM, MCContext &ctx)
const MCSection * DwarfInfoDWOSection
These are used for the Fission separate debug information files.
const MCSection * MergeableConst8Section
const MCSection * XDataSection
const MCSection * BSSSection
BSSSection - Section that is default initialized to zero.
const MCSection * TextSection
const MCSection * DataRelLocalSection
const MCSection * TLSExtraDataSection
const MCSectionCOFF * getCOFFSection(StringRef Section, unsigned Characteristics, SectionKind Kind, int Selection=0, const MCSectionCOFF *Assoc=0)
Definition: MCContext.cpp:283
const MCSection * DwarfPubTypesSection
bool isOSDarwin() const
isOSDarwin - Is this a "Darwin" OS (OS X or iOS).
Definition: Triple.h:313
const MCSection * LSDASection
static SectionKind getThreadBSS()
Definition: SectionKind.h:223
const MCSection * DwarfAccelObjCSection
const MCSection * DrectveSection
static SectionKind getMetadata()
Definition: SectionKind.h:207
static SectionKind getReadOnlyWithRel()
Definition: SectionKind.h:232
const MCSection * ReadOnlySection
const MCSection * CStringSection
const MCSection * TLSBSSSection
const MCSection * EHFrameSection
static SectionKind getMergeable2ByteCString()
Definition: SectionKind.h:213
const MCSection * DataRelROLocalSection
const MCSection * SixteenByteConstantSection
const MCSection * StaticCtorSection
unsigned CompactUnwindDwarfEHFrameOnly
const MCSection * MergeableConst16Section
const MCSection * TLSTLVSection
const MCSection * TLSDataSection
const MCSection * FourByteConstantSection
const MCSection * TextCoalSection
const MCSection * DwarfLocDWOSection
const MCSection * DwarfLineDWOSection
const MCSection * DataSection
const MCSection * DwarfAddrSection
EnvironmentType getEnvironment() const
getEnvironment - Get the parsed environment type of this triple.
Definition: Triple.h:187
const MCSection * UStringSection
const MCSection * TLSThreadInitSection
unsigned EHSectionType
Section flags for eh_frame.
const MCSection * CompactUnwindSection
const MCSection * DwarfGnuPubNamesSection
Sections for newer gnu pubnames and pubtypes.
const MCSection * DwarfAccelNamesSection
const MCSectionMachO * getMachOSection(StringRef Segment, StringRef Section, unsigned TypeAndAttributes, unsigned Reserved2, SectionKind K)
Definition: MCContext.cpp:215
const MCSection * DwarfStrOffDWOSection
const MCSection * MergeableConst4Section
const MCSection * ConstDataSection
const MCSection * PDataSection
static SectionKind getReadOnly()
Definition: SectionKind.h:209
const MCSection * DwarfRangesSection
const MCSection * DataCommonSection
static SectionKind getText()
Definition: SectionKind.h:208