| /llvm-project-15.0.7/llvm/test/tools/obj2yaml/ELF/ |
| H A D | eshnum.yaml | 1 ## 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 D | invalid-e_shnum.test | 1 ## 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 D | ELFHeader.cpp | 108 e_shnum = section_zero.sh_size; in ParseHeaderExtension() 147 e_shnum = e_shnum_hdr; in Parse()
|
| H A D | ELFHeader.h | 76 elf_word e_shnum; ///< Number of section header entries. member
|
| H A D | ObjectFileELF.cpp | 1411 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 D | invalid-e_shoff.test | 2 ## such that e_shoff + e_shnum * sizeof(Elf_Shdr) is past the end of the file,
|
| H A D | many-sections.test | 8 ## 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 D | many-sections.s | 2 ## When an ELF object has SHN_LORESERVE (0xff00) or more sections, its e_shnum field
|
| H A D | file-headers.test | 229 ## 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 D | header-sh-fields.yaml | 55 ## Override the e_shnum field.
|
| H A D | section-headers-exclude.yaml | 469 ## Check that the e_shnum field is adjusted properly when a section is removed.
|
| H A D | section-headers.yaml | 177 ## 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 D | hwasan_symbolize | 79 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 D | ELF.h | 74 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 D | ELFObjHandler.cpp | 255 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 D | invalid.test | 236 # 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 D | ELFObjectWriter.cpp | 1191 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 D | ELFTypes.h | 494 Elf_Half e_shnum; // Number of entries in the section header table
|
| H A D | ELF.h | 814 uintX_t NumSections = getHeader().e_shnum; in sections()
|
| /llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 1977 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 D | ELFEmitter.cpp | 517 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 D | instr.cpp | 681 for (int I = 0; I < Hdr->e_shnum; ++I) { in readDescriptions()
|
| /llvm-project-15.0.7/llvm/tools/obj2yaml/ |
| H A D | elf2yaml.cpp | 307 if (Obj.getHeader().e_shoff != 0 && Obj.getHeader().e_shnum == 0) in dump()
|
| /llvm-project-15.0.7/lld/ELF/ |
| H A D | Writer.cpp | 2819 eHdr->e_shnum = num; in writeHeader()
|
| /llvm-project-15.0.7/llvm/tools/llvm-readobj/ |
| H A D | ELFDumper.cpp | 3256 if (ElfHeader.e_shnum != 0) in getSectionHeadersNumString() 3257 return to_string(ElfHeader.e_shnum); in getSectionHeadersNumString()
|