reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Object/ELF.h
  237     assert(Shdr.sh_type == ELF::SHT_NOTE && "Shdr is not of type SHT_NOTE");
  593   if (Section->sh_type != ELF::SHT_STRTAB)
  598                                   getHeader()->e_machine, Section->sh_type)))
  628   assert(Section.sh_type == ELF::SHT_SYMTAB_SHNDX);
  637   if (SymTable.sh_type != ELF::SHT_SYMTAB &&
  638       SymTable.sh_type != ELF::SHT_DYNSYM)
  641                                                      SymTable.sh_type) +
  667   if (Sec.sh_type != ELF::SHT_SYMTAB && Sec.sh_type != ELF::SHT_DYNSYM)
  667   if (Sec.sh_type != ELF::SHT_SYMTAB && Sec.sh_type != ELF::SHT_DYNSYM)
include/llvm/Object/ELFObjectFile.h
  321     assert(SymTable->sh_type == ELF::SHT_SYMTAB ||
  322            SymTable->sh_type == ELF::SHT_DYNSYM);
  374       if (Sec.sh_type == ELF::SHT_ARM_ATTRIBUTES) {
  489   return getSection(Sec)->sh_type;
  752   return EShdr->sh_type == ELF::SHT_PROGBITS &&
  761          EShdr->sh_type == ELF::SHT_NOBITS;
  775     if (Sec.sh_type != ELF::SHT_DYNAMIC)
  795   return getSection(Sec)->sh_type == ELF::SHT_NOBITS;
  808   return !isBerkeleyText(Sec) && EShdr->sh_type != ELF::SHT_NOBITS &&
  830   if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL)
  830   if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL)
  851   uintX_t Type = EShdr->sh_type;
  872   if (sec->sh_type == ELF::SHT_REL)
  889   if (sec->sh_type == ELF::SHT_REL)
  898   if (sec->sh_type == ELF::SHT_REL)
  919   if (getRelSection(Rel)->sh_type != ELF::SHT_RELA)
  927   assert(getRelSection(Rel)->sh_type == ELF::SHT_REL);
  937   assert(getRelSection(Rela)->sh_type == ELF::SHT_RELA);
  960     switch (Sec.sh_type) {
lib/Object/ELF.cpp
  526       if (Sec.sh_type == ELF::SHT_DYNAMIC) {
lib/ObjectYAML/ELFEmitter.cpp
  399     SHeader.sh_type = Sec->Type;
  553     SHeader.sh_type = YAMLSec->Type;
  555     SHeader.sh_type = IsStatic ? ELF::SHT_SYMTAB : ELF::SHT_DYNSYM;
  609   SHeader.sh_type = YAMLSec ? YAMLSec->Type : ELF::SHT_STRTAB;
  684       if (SHeader->sh_type != llvm::ELF::SHT_NOBITS)
tools/lld/ELF/InputFiles.cpp
  327     if (sec.sh_type == type)
  514     if (sec.sh_type == ELF::SHT_LLVM_CALL_GRAPH_PROFILE)
  522       if (sec.sh_type == SHT_LLVM_ADDRSIG) {
  537     switch (sec.sh_type) {
  793   switch (sec.sh_type) {
  869     if (sec.sh_type == SHT_RELA) {
 1182     switch (sec.sh_type) {
 1526     if (sec.sh_type != SHT_SYMTAB)
tools/lld/ELF/InputSection.cpp
   52   if (hdr.sh_type == SHT_NOBITS)
  126                        getType(hdr.sh_type, name), hdr.sh_entsize, hdr.sh_link,
tools/lld/ELF/OutputSections.cpp
   59   shdr->sh_type = type;
tools/lld/ELF/Relocations.cpp
  672   if (elfSec.sh_type != SHT_GROUP)
tools/llvm-objcopy/ELF/Object.cpp
   73   Shdr.sh_type = Sec.Type;
 1443   switch (Shdr.sh_type) {
 1513     Sec.Type = Shdr.sh_type;
 1526                           (Shdr.sh_type == SHT_NOBITS) ? 0 : Shdr.sh_size);
 1754   Shdr.sh_type = SHT_NULL;
tools/llvm-objdump/ELFDump.cpp
   45     if (Sec.sh_type == ELF::SHT_DYNSYM)
   70   if ((*SecOrErr)->sh_type == ELF::SHT_RELA) {
   74   } else if ((*SecOrErr)->sh_type != ELF::SHT_REL) {
  313     if (Shdr.sh_type != ELF::SHT_GNU_verneed &&
  314         Shdr.sh_type != ELF::SHT_GNU_verdef)
  323     if (Shdr.sh_type == ELF::SHT_GNU_verneed)
tools/llvm-readobj/ELFDumper.cpp
 1446     if (Sec.sh_type != ELF::SHT_DYNAMIC)
 1570     switch (Sec.sh_type) {
 2541   if (PltRelSec->sh_type == ELF::SHT_REL) {
 2842     if (Sec.sh_type != ELF::SHT_GROUP)
 2929         Sym, StrTable, SymTab->sh_type == SHT_DYNSYM /* IsDynamic */);
 2997     if (Sec.sh_type != ELF::SHT_REL && Sec.sh_type != ELF::SHT_RELA &&
 2997     if (Sec.sh_type != ELF::SHT_REL && Sec.sh_type != ELF::SHT_RELA &&
 2998         Sec.sh_type != ELF::SHT_RELR && Sec.sh_type != ELF::SHT_ANDROID_REL &&
 2998         Sec.sh_type != ELF::SHT_RELR && Sec.sh_type != ELF::SHT_ANDROID_REL &&
 2999         Sec.sh_type != ELF::SHT_ANDROID_RELA &&
 3000         Sec.sh_type != ELF::SHT_ANDROID_RELR)
 3006     if (Sec.sh_type == ELF::SHT_ANDROID_REL ||
 3007         Sec.sh_type == ELF::SHT_ANDROID_RELA) {
 3014     if (!opts::RawRelr && (Sec.sh_type == ELF::SHT_RELR ||
 3015                            Sec.sh_type == ELF::SHT_ANDROID_RELR)) {
 3026     printRelocHeader(Sec.sh_type);
 3029     switch (Sec.sh_type) {
 3056         printRelocation(Obj, SymTab, R, Sec.sh_type == ELF::SHT_ANDROID_RELA);
 3215         getSectionTypeString(Obj->getHeader()->e_machine, Sec.sh_type);
 3488   if (Sec.sh_type == ELF::SHT_NOBITS)
 3491       (Sec.sh_type == ELF::SHT_NOBITS) && ((Sec.sh_flags & ELF::SHF_TLS) != 0);
 3509       (Sec.sh_type == ELF::SHT_NOBITS) && ((Sec.sh_flags & ELF::SHF_TLS) != 0);
 3525   return ((Sec.sh_type == ELF::SHT_NOBITS) ||
 3600       bool TbssInNonTLS = (Sec.sh_type == ELF::SHT_NOBITS) &&
 3605           checkPTDynamic(Phdr, Sec) && (Sec.sh_type != ELF::SHT_NULL)) {
 4666       if (S.sh_type != SHT_NOTE)
 4893     uint32_t SectionType = ElfSec->sh_type;
 5246     if (Sec.sh_type != ELF::SHT_REL && Sec.sh_type != ELF::SHT_RELA &&
 5246     if (Sec.sh_type != ELF::SHT_REL && Sec.sh_type != ELF::SHT_RELA &&
 5247         Sec.sh_type != ELF::SHT_RELR && Sec.sh_type != ELF::SHT_ANDROID_REL &&
 5247         Sec.sh_type != ELF::SHT_RELR && Sec.sh_type != ELF::SHT_ANDROID_REL &&
 5248         Sec.sh_type != ELF::SHT_ANDROID_RELA &&
 5249         Sec.sh_type != ELF::SHT_ANDROID_RELR)
 5269   switch (Sec->sh_type) {
 5323         Sym, StrTable, SymTab->sh_type == SHT_DYNSYM /* IsDynamic */);
 5356         object::getELFSectionTypeName(Obj->getHeader()->e_machine, Sec.sh_type),
 5357         Sec.sh_type);
 5419     if (opts::SectionData && Sec.sh_type != ELF::SHT_NOBITS) {
 5909       if (S.sh_type != SHT_NOTE)
 5940     if (Shdr.sh_type != ELF::SHT_LLVM_LINKER_OPTIONS)
tools/obj2yaml/elf2yaml.cpp
  133   if (SymTab->sh_type == ELF::SHT_SYMTAB) {
  179     if (Sec.sh_type == ELF::SHT_SYMTAB) {
  181     } else if (Sec.sh_type == ELF::SHT_DYNSYM) {
  183     } else if (Sec.sh_type == ELF::SHT_SYMTAB_SHNDX) {
  218     switch (Sec.sh_type) {
  324       if (Sec.sh_type == ELF::SHT_PROGBITS) {
  361   if (Symtab->sh_type == ELF::SHT_SYMTAB) {
  450   S.Type = Shdr->sh_type;
  612   if (Shdr->sh_type == ELF::SHT_REL) {
  646   if (SecIndex != 0 || Shdr->sh_type != ELF::SHT_NULL) {
  944   assert(Shdr->sh_type == ELF::SHT_MIPS_ABIFLAGS &&