Home
last modified time | relevance | path

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

123

/external/syslinux/com32/tools/
Drelocs.c206 if (shndx < ehdr.e_shnum) { in sec_name()
282 ehdr.e_shnum = elf16_to_cpu(ehdr.e_shnum); in read_ehdr()
303 if (ehdr.e_shstrndx >= ehdr.e_shnum) { in read_ehdr()
313 secs = calloc(ehdr.e_shnum, sizeof(struct section)); in read_shdrs()
316 ehdr.e_shnum); in read_shdrs()
322 for (i = 0; i < ehdr.e_shnum; i++) { in read_shdrs()
326 i, ehdr.e_shnum, strerror(errno)); in read_shdrs()
337 if (sec->shdr.sh_link < ehdr.e_shnum) in read_shdrs()
346 for (i = 0; i < ehdr.e_shnum; i++) { in read_strtabs()
371 for (i = 0; i < ehdr.e_shnum; i++) { in read_symtabs()
[all …]
/external/elfutils/tests/
Dnewfile.c48 ehdr->e_shnum, in print_ehdr()
127 ZERO_TEST (e_shnum); in main()
159 ZERO_TEST (e_shnum); in main()
Delfshphehdr.c70 check ("e_shnum == 0", ehdr.e_shnum == 0); in test()
97 check ("e_shnum == 0", ehdr.e_shnum == 0); in test()
137 check ("e_shnum == 2", ehdr.e_shnum == 2); in test()
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()
/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()
/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/minijail/
Delfparse.h46 Elf32_Half e_shnum; /* Section header table entry count */ member
64 Elf64_Half e_shnum; /* Section header table entry count */ member
/external/libunwind/src/
Delfxx.c116 GET_EHDR_FIELD(ei, ehdr, e_shnum, true); in elf_w()
119 if (ehdr->e_shoff + ehdr->e_shnum * ehdr->e_shentsize > size) { in elf_w()
121 (unsigned long) (ehdr->e_shoff + ehdr->e_shnum * ehdr->e_shentsize), in elf_w()
166 GET_EHDR_FIELD(ei, ehdr, e_shnum, true); in elf_w()
169 for (i = 0; i < ehdr->e_shnum; ++i) { in elf_w()
279 if (soff + ehdr->e_shnum * ehdr->e_shentsize > ei->u.mapped.size) { in Elf_W()
281 (unsigned long) (soff + ehdr->e_shnum * ehdr->e_shentsize), in Elf_W()
322 for (i = 0; i < ehdr->e_shnum; ++i) { in elf_w()
539 for (i = 0; i < ehdr->e_shnum; ++i) { in elf_w()
/external/elfutils/libdwfl/
Delf-from-memory.c142 shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr.e32.e_shentsize; in elf_from_remote_memory()
154 shdrs_end = ehdr.e64.e_shoff + ehdr.e64.e_shnum * ehdr.e64.e_shentsize; in elf_from_remote_memory()
331 ehdr.e32.e_shnum = 0; in elf_from_remote_memory()
358 ehdr.e64.e_shnum = 0; in elf_from_remote_memory()
/external/swiftshader/third_party/LLVM/test/Scripts/
Delf-dump181 e_shnum = f.read16()
182 print "('e_shnum', %s)" % common_dump.HexDump(e_shnum)
188 for index in range(e_shnum[0]):
206 for index in range(e_shnum[0]):
/external/syslinux/com32/lib/sys/module/i386/
Delf_module.c154 sht = malloc(elf_hdr->e_shnum * elf_hdr->e_shentsize); in load_segments()
160 image_read(sht, elf_hdr->e_shnum * elf_hdr->e_shentsize, module); in load_segments()
163 for (i = 0; i < elf_hdr->e_shnum; i++) { in load_segments()
/external/elfutils/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()
333 CONVERT (elf->state.elf32.ehdr_mem.e_shnum); in file_read_elf()
435 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.c85 COPY (e_shnum); in __gelf_getehdr_rdlock()
/external/syslinux/gpxe/src/include/
Delf.h184 Elf32_Half e_shnum; /* Number of section header entries. */ member
201 Elf64_Half e_shnum; /* Number of section header entries. */ member
/external/syslinux/com32/lib/sys/module/x86_64/
Delf_module.c154 sht = malloc(elf_hdr->e_shnum * elf_hdr->e_shentsize); in load_segments()
160 image_read(sht, elf_hdr->e_shnum * elf_hdr->e_shentsize, module); in load_segments()
163 for (i = 0; i < elf_hdr->e_shnum; i++) { in load_segments()
/external/syslinux/com32/mboot/
Dmap.c233 len = eh->e_shentsize * eh->e_shnum; in map_image()
246 mbinfo.syms.e.num = eh->e_shnum; in map_image()
250 for (i = 0; i < eh->e_shnum; i++) { in map_image()
/external/libunwind/src/dwarf/
DGfind_proc_info-lsb.c127 sec_hdrs = calloc (ehdr.e_shnum, sizeof (Elf_W (Shdr))); in load_debug_frame()
128 if (sec_hdrs == NULL || fread (sec_hdrs, sizeof (Elf_W (Shdr)), ehdr.e_shnum, f) != ehdr.e_shnum in load_debug_frame()
129 || shstrndx >= ehdr.e_shnum) in load_debug_frame()
140 for (i = 1; i < ehdr.e_shnum && *buf == NULL; i++) in load_debug_frame()
214 for (j = 1; j < ehdr.e_shnum; j++) { in load_debug_frame()
/external/syslinux/gpxe/src/arch/i386/core/
Dfreebsd_loader.c137 estate.toread = estate.e.elf32.e_shnum * estate.e.elf32.e_shentsize; in elf_freebsd_debug_loader()
165 for (i=0; i < estate.e.elf32.e_shnum; i++) in elf_freebsd_debug_loader()
/external/kernel-headers/original/uapi/linux/
Delf.h216 Elf32_Half e_shnum; member
233 Elf64_Half e_shnum; member
/external/vixl/examples/aarch32/
Ddisasm-a32.cc105 nsections_ = ehdr->e_shnum; in SectionLocator()
138 if ((sym[snum].st_shndx > 0) && (sym[snum].st_shndx < ehdr->e_shnum) && in LocateSymbols()
/external/syslinux/com32/include/sys/
Delf64.h74 Elf64_Half e_shnum; member
Delf32.h74 Elf32_Half e_shnum; member

123