Home
last modified time | relevance | path

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

12

/external/elfutils/src/tests/
Dnewfile.c48 ehdr->e_shnum, in print_ehdr()
127 ZERO_TEST (e_shnum); in main()
159 ZERO_TEST (e_shnum); in main()
Dupdate1.c77 ehdr->e_shnum, ehdr->e_shstrndx); in main()
115 ehdr->e_shnum, ehdr->e_shstrndx); in main()
Dupdate2.c78 ehdr->e_shnum, ehdr->e_shstrndx); in main()
138 ehdr->e_shnum, ehdr->e_shstrndx); in main()
Dupdate3.c87 ehdr->e_shnum, ehdr->e_shstrndx); in main()
193 ehdr->e_shnum, ehdr->e_shstrndx); in main()
Dupdate4.c91 ehdr->e_shnum, ehdr->e_shstrndx); in main()
345 ehdr->e_shnum, ehdr->e_shstrndx); in main()
Dasm-tst1.c48 .e_shnum = 4,
Dasm-tst2.c48 .e_shnum = 3,
/external/google-breakpad/src/common/linux/
Ddump_symbols.cc245 int num_sections = elf_header->e_shnum; in LoadDwarf()
620 elf_header->e_shnum); in LoadSymbols()
640 elf_header->e_shnum); in LoadSymbols()
656 elf_header->e_shnum); in LoadSymbols()
660 elf_header->e_shnum); in LoadSymbols()
688 elf_header->e_shnum); in LoadSymbols()
706 elf_header->e_shnum); in LoadSymbols()
713 elf_header->e_shnum); in LoadSymbols()
717 elf_header->e_shnum); in LoadSymbols()
738 names_end, elf_header->e_shnum); in LoadSymbols()
Delfutils.cc70 elf_header->e_shnum); in FindElfClassSection()
Dsynth_elf_unittest.cc237 EXPECT_EQ(2, header->e_shnum); in TYPED_TEST()
312 EXPECT_EQ(4, header->e_shnum); in TYPED_TEST()
/external/libunwind/src/ia64/
DGfind_unwind_table.c67 if (soff + ehdr->e_shnum * ehdr->e_shentsize > edi->ei.size) in find_gp()
70 soff + ehdr->e_shnum * ehdr->e_shentsize, in find_gp()
78 for (i = 0; i < ehdr->e_shnum; ++i) in find_gp()
/external/libunwind/src/
Delfxx.c114 GET_EHDR_FIELD(ei, ehdr, e_shnum, true); in elf_w()
117 if (ehdr->e_shoff + ehdr->e_shnum * ehdr->e_shentsize > size) { in elf_w()
119 (unsigned long) (ehdr->e_shoff + ehdr->e_shnum * ehdr->e_shentsize), in elf_w()
164 GET_EHDR_FIELD(ei, ehdr, e_shnum, true); in elf_w()
167 for (i = 0; i < ehdr->e_shnum; ++i) { in elf_w()
277 if (soff + ehdr->e_shnum * ehdr->e_shentsize > ei->u.mapped.size) { in Elf_W()
279 (unsigned long) (soff + ehdr->e_shnum * ehdr->e_shentsize), in Elf_W()
320 for (i = 0; i < ehdr->e_shnum; ++i) { in elf_w()
494 for (i = 0; i < ehdr->e_shnum; ++i) { in elf_w()
/external/libvpx/libvpx/build/make/
Dobj_int_extract.c273 ENDIAN_ASSIGN_IN_PLACE(elf->hdr32.e_shnum); in parse_elf_header()
290 ENDIAN_ASSIGN_IN_PLACE(elf->hdr64.e_shnum); in parse_elf_header()
302 if (idx >= elf->hdr32.e_shnum) in parse_elf_section()
318 if (idx >= elf->hdr64.e_shnum) in parse_elf_section()
404 for (i = 0; i < elf.hdr32.e_shnum; i++) { in parse_elf()
421 for (i = 0; i < elf.hdr64.e_shnum; i++) { in parse_elf()
441 for (i = 0; i < elf.hdr32.e_shnum; i++) { in parse_elf()
530 for (i = 0; i < elf.hdr64.e_shnum; i++) { in parse_elf()
/external/elfutils/src/libdwfl/
Delf-from-memory.c136 shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr.e32.e_shentsize; in elf_from_remote_memory()
148 shdrs_end = ehdr.e64.e_shoff + ehdr.e64.e_shnum * ehdr.e64.e_shentsize; in elf_from_remote_memory()
310 ehdr.e32.e_shnum = 0; in elf_from_remote_memory()
337 ehdr.e64.e_shnum = 0; in elf_from_remote_memory()
/external/elfutils/src/libelf/
Delf_begin.c110 ehdr_mem.e32.e_shnum = ((Elf32_Ehdr *) e_ident)->e_shnum; in get_shnum()
118 CONVERT (ehdr_mem.e32.e_shnum); in get_shnum()
126 ehdr_mem.e64.e_shnum = ((Elf64_Ehdr *) e_ident)->e_shnum; in get_shnum()
134 CONVERT (ehdr_mem.e64.e_shnum); in get_shnum()
143 result = ehdr.e32->e_shnum; in get_shnum()
192 result = ehdr.e64->e_shnum; in get_shnum()
381 CONVERT (elf->state.elf32.ehdr_mem.e_shnum); in file_read_elf()
472 CONVERT (elf->state.elf64.ehdr_mem.e_shnum); in file_read_elf()
Dgelf_update_ehdr.c92 COPY (e_shnum); in gelf_update_ehdr()
Dgelf_getehdr.c86 COPY (e_shnum);
Delf32_updatenull.c96 update_if_changed (ehdr->e_shnum, 0, in ELFW()
100 update_if_changed (ehdr->e_shnum, shnum, in ELFW()
/external/valgrind/VEX/unused/
Dlinker.c336 for (i = 0; i < ehdr->e_shnum; i++) { in findElfSection()
730 for (shnum = 0; shnum < ehdr->e_shnum; shnum++) { in ocResolve_ELF()
826 ehdr->e_shoff, ehdr->e_shnum, ehdr->e_shentsize ); in ocVerifyImage_ELF()
842 for (i = 0; i < ehdr->e_shnum; i++) { in ocVerifyImage_ELF()
867 for (i = 0; i < ehdr->e_shnum; i++) { in ocVerifyImage_ELF()
888 for (i = 0; i < ehdr->e_shnum; i++) { in ocVerifyImage_ELF()
972 for (i = 0; i < ehdr->e_shnum; i++) { in ocGetNames_ELF()
1083 assert(secno > 0 && secno < ehdr->e_shnum); in ocGetNames_ELF()
/external/valgrind/VEX/switchback/
Dlinker.c404 for (i = 0; i < ehdr->e_shnum; i++) {
890 for (shnum = 0; shnum < ehdr->e_shnum; shnum++) {
989 ehdr->e_shnum, ehdr->e_shentsize );
1005 for (i = 0; i < ehdr->e_shnum; i++) {
1030 for (i = 0; i < ehdr->e_shnum; i++) {
1051 for (i = 0; i < ehdr->e_shnum; i++) {
1135 for (i = 0; i < ehdr->e_shnum; i++) {
1250 assert(secno > 0 && secno < ehdr->e_shnum);
/external/ltrace/
Dltrace-elf.c131 for (i = 1; i < lte->ehdr.e_shnum; ++i) { in elf_get_section_if()
500 if (vect_reserve_additional(rela_vec, lte->ehdr.e_shnum) < 0) in elf_read_relocs()
580 for (i = 1; i < lte->ehdr.e_shnum; ++i) { in ltelf_read_elf()
672 for (i = 1; i < lte->ehdr.e_shnum; ++i) { in ltelf_read_elf()
696 if (i == lte->ehdr.e_shnum) { in ltelf_read_elf()
922 GElf_Word secflags[lte->ehdr.e_shnum]; in populate_this_symtab()
924 for (i = 1; i < lte->ehdr.e_shnum; ++i) { in populate_this_symtab()
945 || sym.st_shndx >= lte->ehdr.e_shnum) in populate_this_symtab()
/external/kernel-headers/original/uapi/linux/
Delf.h216 Elf32_Half e_shnum; member
233 Elf64_Half e_shnum; member
/external/lldb/source/Plugins/ObjectFile/ELF/
DObjectFileELF.cpp338 … size_t section_header_end = header.e_shoff + header.e_shnum * header.e_shentsize; in GetModuleSpecifications()
731 if (header.e_shnum == 0) in GetSectionHeaderInfo()
734 section_headers.resize(header.e_shnum); in GetSectionHeaderInfo()
735 if (section_headers.size() != header.e_shnum) in GetSectionHeaderInfo()
738 const size_t sh_size = header.e_shnum * header.e_shentsize; in GetSectionHeaderInfo()
746 for (idx = 0, offset = 0; idx < header.e_shnum; ++idx) in GetSectionHeaderInfo()
1569 s->Printf("e_shnum = 0x%4.4x\n", header.e_shnum); in DumpELFHeader()
DELFHeader.h73 elf_half e_shnum; ///< Number of section header entries. member
/external/libunwind/src/dwarf/
DGfind_proc_info-lsb.c122 sec_hdrs = calloc (ehdr.e_shnum, sizeof (Elf_W (Shdr))); in load_debug_frame()
123 if (fread (sec_hdrs, sizeof (Elf_W (Shdr)), ehdr.e_shnum, f) != ehdr.e_shnum) in load_debug_frame()
133 for (i = 1; i < ehdr.e_shnum && *buf == NULL; i++) in load_debug_frame()

12