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

References

include/llvm/Object/ELF.h
  239     if (Shdr.sh_offset + Shdr.sh_size > getBufSize()) {
  243                         Twine::utohexstr(Shdr.sh_size) + ")");
  246     return Elf_Note_Iterator(base() + Shdr.sh_offset, Shdr.sh_size, Err);
  398   uintX_t Size = Sec->sh_size;
  531     NumSections = First->sh_size;
  644   uint64_t Syms = SymTable.sh_size / sizeof(Elf_Sym);
include/llvm/Object/ELFObjectFile.h
  719   return getSection(Sec)->sh_size;
  728                       (uintptr_t)base() + EShdr->sh_offset, EShdr->sh_size))
  731                       EShdr->sh_size);
  840   RelData.d.b += S->sh_size / S->sh_entsize;
 1004             DotSymtabSec && DotSymtabSec->sh_size >= sizeof(Elf_Sym) ? 1 : 0);
 1013   DataRefImpl Sym = toDRI(SymTab, SymTab->sh_size / sizeof(Elf_Sym));
 1028   DataRefImpl Sym = toDRI(SymTab, SymTab->sh_size / sizeof(Elf_Sym));
include/llvm/Object/ELFTypes.h
  158     return sh_size / sh_entsize;
lib/Object/ELF.cpp
  532         DynSecSize = Sec.sh_size;
lib/ObjectYAML/ELFEmitter.cpp
  360       Header.sh_size = *YAMLSec->ShSize;
  412           SHeader.sh_size = *RawSec->Size;
  430       SHeader.sh_size = S->Size;
  461         SHeader.sh_size = *Sec->ShSize;
  592     SHeader.sh_size = writeContent(OS, RawSec->Content, RawSec->Size);
  599   SHeader.sh_size = arrayDataSize(makeArrayRef(Syms));
  617     SHeader.sh_size = writeContent(OS, RawSec->Content, RawSec->Size);
  620     SHeader.sh_size = STB.getSize();
  681       uint64_t End = SHeader->sh_offset + SHeader->sh_size;
  713   SHeader.sh_size = writeContent(OS, Section.Content, Section.Size);
  742   SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size();
  784   SHeader.sh_size = Shndx.Entries.size() * SHeader.sh_entsize;
  795   SHeader.sh_size = SHeader.sh_entsize * Section.Members.size();
  822   SHeader.sh_size = Section.Entries.size() * SHeader.sh_entsize;
  834     SHeader.sh_size = writeContent(OS, Section.Content, Section.Size);
  840     SHeader.sh_size += sizeof(uintX_t) + encodeULEB128(E.Size, OS);
  856     SHeader.sh_size = writeContent(OS, Section.Content, Section.Size);
  869   SHeader.sh_size = (2 + Section.Bucket->size() + Section.Chain->size()) * 4;
  910   SHeader.sh_size = Section.Entries.size() * sizeof(Elf_Verdef) +
  956   SHeader.sh_size = Section.VerneedV.size() * sizeof(Elf_Verneed) +
  971   SHeader.sh_size = SHeader.sh_entsize;
 1003     SHeader.sh_size = Section.Content->binary_size();
 1005     SHeader.sh_size = 2 * sizeof(uintX_t) * Section.Entries.size();
 1033     SHeader.sh_size = writeContent(OS, Section.Content, Section.Size);
 1041     SHeader.sh_size += encodeULEB128(Val, OS);
 1054     SHeader.sh_size = writeContent(OS, Section.Content, Section.Size);
 1091   SHeader.sh_size = OS.tell() - Offset;
tools/lld/ELF/InputFiles.cpp
  438   if (sec.sh_size == 0)
  449   if (sec.sh_size % entSize)
  451           Twine(sec.sh_size) + ") must be a multiple of sh_entsize (" +
tools/lld/ELF/InputSection.cpp
   53     return makeArrayRef<uint8_t>(nullptr, hdr.sh_size);
tools/lld/ELF/OutputSections.cpp
   65   shdr->sh_size = size;
tools/lld/ELF/Writer.cpp
 2569     sHdrs->sh_size = num;
tools/llvm-objcopy/ELF/Object.cpp
   77   Shdr.sh_size = Sec.Size;
 1518     Sec.Size = Shdr.sh_size;
 1526                           (Shdr.sh_type == SHT_NOBITS) ? 0 : Shdr.sh_size);
 1761     Shdr.sh_size = Shnum;
 1763     Shdr.sh_size = 0;
tools/llvm-readobj/ELFDumper.cpp
  213     return checkDRI({ObjF->getELFFile()->base() + S->sh_offset, S->sh_size,
  647   unsigned VerneedSize = Sec->sh_size;    // Size of section in bytes
  686   unsigned VerdefSize = Sec->sh_size;    // Size of section in bytes
  871     if (Shdr.sh_addr == Addr && Shdr.sh_size > 0)
 1465     if (DynamicSec->sh_addr + DynamicSec->sh_size >
 1507                   DynamicSec->sh_size, sizeof(Elf_Dyn), ObjF->getFileName()});
 2736   return "0 (" + to_string(Arr[0].sh_size) + ")";
 3219     Fields[5].Str = to_string(format_hex_no_prefix(Sec.sh_size, 6));
 3494       (IsSpecial && Phdr.p_type != ELF::PT_TLS) ? 0 : Sec.sh_size;
 3512       (IsSpecial && Phdr.p_type != ELF::PT_TLS) ? 0 : Sec.sh_size;
 3522   if (Phdr.p_type != ELF::PT_DYNAMIC || Sec.sh_size != 0 || Phdr.p_memsz == 0)
 3788   unsigned Entries = Sec->sh_size / sizeof(Elf_Versym);
 3869       (size_t)StrTabSec->sh_size);
 3917       (size_t)StrTabSec->sh_size};
 4668       PrintHeader(S.sh_offset, S.sh_size);
 5389     W.printNumber("Size", Sec.sh_size);
 5648   const uint8_t *SecEndAddress = SecStartAddress + Sec->sh_size;
 5912       PrintHeader(S.sh_offset, S.sh_size);
tools/obj2yaml/elf2yaml.cpp
  654     S->Size = static_cast<llvm::yaml::Hex64>(Shdr->sh_size);
  683   S->Size = Shdr->sh_size;