Home
last modified time | relevance | path

Searched refs:shnum (Results 1 – 5 of 5) sorted by relevance

/build/tools/soslim/
Dsoslim.c38 size_t shnum; /* number of sections in the original file */ in clone_elf() local
97 FAILIF_LIBELF(elf_getshnum (elf, &shnum) < 0, elf_getshnum); in clone_elf()
98 INFO("Original ELF file has %d sections.\n", shnum); in clone_elf()
108 shnum*sizeof (shdr_info_t)); in clone_elf()
109 shdr_info_len = rebuild_shstrtab ? shnum + 1 : shnum; in clone_elf()
208 for (cnt = 1; cnt < shnum; ++cnt) { in clone_elf()
265 for (cnt = 1; cnt < shnum; ++cnt) { in clone_elf()
331 scnidx >= shnum || in clone_elf()
433 for (cnt = idx = 1; cnt < shnum; ++cnt) { in clone_elf()
485 shnum, in clone_elf()
Dmain.c266 size_t shnum; in print_dynamic_symbols() local
267 FAILIF_LIBELF(elf_getshnum (elf, &shnum) < 0, elf_getshnum); in print_dynamic_symbols()
320 sym->st_shndx < shnum) { in print_dynamic_symbols()
/build/tools/apriori/
Dsource.h68 int shnum; /* number of sections */ member
Dapriori.c91 for (i = 0; i < source->shnum; i++) { in print_shdrs()
230 source->shnum * sizeof (shdr_info_t)); in setup_shdr_info()
232 source->shdr_info = (shdr_info_t *)CALLOC(source->shnum, in setup_shdr_info()
401 for (cnt = 0; cnt < source->shnum; cnt++) { in lookup_shdr_info_by_new_section()
427 for (scnidx = 1; scnidx < (size_t)source->shnum; scnidx++) { in do_init_source()
686 FAILIF_LIBELF(elf_getshnum (source->oldelf, (size_t *)&source->shnum) < 0, in init_source()
1489 for (i = 0; i < source->shnum; i++) { in prelink()
2002 for (cnt = idx = 1; cnt < source->shnum; ++cnt) { in drop_sections()
2372 for (cnt = idx = 1; cnt < source->shnum; ++cnt) { in process_file()
2397 source->shnum, // length of source->shdr_info[] in process_file()
[all …]
/build/tools/lsd/
Dlsd.c43 int shnum; /* number of sections */ member
168 FAILIF_LIBELF(elf_getshnum (source->elf, &source->shnum) < 0, elf_getshnum); in init_source()
174 INFO("Locating %d sections in %s...\n", source->shnum, full_path); in init_source()
175 for (scnidx = 1; scnidx < source->shnum; scnidx++) { in init_source()
330 if (sym->st_shndx < source->shnum) { in is_symbol_imported()