Home
last modified time | relevance | path

Searched refs:e_shnum (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/llvm/test/tools/obj2yaml/ELF/
H A Deshnum.yaml1 ## Test cases related to the value of the e_shnum field of the ELF header live here.
3 ## Normally an object that does not have sections has e_shnum == 0.
4 ## Also, e_shnum might be 0, when the the number of entries in the section
9 ## In the test case below we have an object that has e_shnum = 0 and the real
55 ## In the test case below we have an object without a section header table and e_shnum == 0.
/llvm-project-15.0.7/lld/test/ELF/invalid/
H A Dinvalid-e_shnum.test1 ## Spec says that "If a file has no section header table, e_shnum holds the value zero.", though
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.cpp108 e_shnum = section_zero.sh_size; in ParseHeaderExtension()
147 e_shnum = e_shnum_hdr; in Parse()
H A DELFHeader.h76 elf_word e_shnum; ///< Number of section header entries. member
H A DObjectFileELF.cpp1411 if (header.e_shnum == 0) in GetSectionHeaderInfo()
1416 section_headers.resize(header.e_shnum); in GetSectionHeaderInfo()
1417 if (section_headers.size() != header.e_shnum) in GetSectionHeaderInfo()
1420 const size_t sh_size = header.e_shnum * header.e_shentsize; in GetSectionHeaderInfo()
1428 for (idx = 0, offset = 0; idx < header.e_shnum; ++idx) { in GetSectionHeaderInfo()
3041 s->Printf("e_shnum = 0x%8.8x\n", header.e_shnum); in DumpELFHeader()
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/
H A Dinvalid-e_shoff.test2 ## such that e_shoff + e_shnum * sizeof(Elf_Shdr) is past the end of the file,
H A Dmany-sections.test8 ## The ELF header should have e_shnum == 0 and e_shstrndx == SHN_XINDEX.
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A Dmany-sections.s2 ## When an ELF object has SHN_LORESERVE (0xff00) or more sections, its e_shnum field
H A Dfile-headers.test229 ## Check what we print when e_shnum == 0, e_shstrndx == SHN_XINDEX and the section header table can…
/llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/
H A Dheader-sh-fields.yaml55 ## Override the e_shnum field.
H A Dsection-headers-exclude.yaml469 ## Check that the e_shnum field is adjusted properly when a section is removed.
H A Dsection-headers.yaml177 ## Test that we are still able to override e_shoff, e_shnum and e_shstrndx
/llvm-project-15.0.7/compiler-rt/lib/hwasan/scripts/
H A Dhwasan_symbolize79 e_shnum, = struct.unpack_from('<H', buffer=mv, offset=e_shnum_offset)
81 for i in range(0, e_shnum):
/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DELF.h74 Elf32_Half e_shnum; // Number of entries in the section header table member
100 Elf64_Half e_shnum; member
/llvm-project-15.0.7/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp255 ElfHeader.e_shnum = LastSection->Index + 1; in ELFStubBuilder()
261 return ElfHeader.e_shoff + ElfHeader.e_shnum * sizeof(Elf_Shdr); in getSize()
/llvm-project-15.0.7/llvm/test/Object/
H A Dinvalid.test236 # RUN: llvm-readobj --program-headers %p/Inputs/invalid-e_shnum.elf 2>&1 | \
237 # RUN: FileCheck -DFILE=%p/Inputs/invalid-e_shnum.elf --check-prefix=INVALID-PH-ENTSIZE %s
315 ## when the e_shnum field is broken (is greater than the actual number of sections).
/llvm-project-15.0.7/llvm/lib/MC/
H A DELFObjectWriter.cpp1191 NumSectionsOffset = offsetof(ELF::Elf64_Ehdr, e_shnum); in writeObject()
1197 NumSectionsOffset = offsetof(ELF::Elf32_Ehdr, e_shnum); in writeObject()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELFTypes.h494 Elf_Half e_shnum; // Number of entries in the section header table
H A DELF.h814 uintX_t NumSections = getHeader().e_shnum; in sections()
/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp1977 Ehdr.e_shnum = 0; in writeEhdr()
1979 Ehdr.e_shnum = Shnum; in writeEhdr()
1993 Ehdr.e_shnum = 0; in writeEhdr()
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp517 Header.e_shnum = *Doc.Header.EShNum; in writeELFHeader()
519 Header.e_shnum = SectionHeaders.getNumHeaders(Doc.getSections().size()); in writeELFHeader()
/llvm-project-15.0.7/bolt/runtime/
H A Dinstr.cpp681 for (int I = 0; I < Hdr->e_shnum; ++I) { in readDescriptions()
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Delf2yaml.cpp307 if (Obj.getHeader().e_shoff != 0 && Obj.getHeader().e_shnum == 0) in dump()
/llvm-project-15.0.7/lld/ELF/
H A DWriter.cpp2819 eHdr->e_shnum = num; in writeHeader()
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DELFDumper.cpp3256 if (ElfHeader.e_shnum != 0) in getSectionHeadersNumString()
3257 return to_string(ElfHeader.e_shnum); in getSectionHeadersNumString()

12