Lines Matching refs:sh_size
283 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup()
415 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs()
434 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs()
437 sec->shdr.sh_size); in read_strtabs()
443 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) in read_strtabs()
444 != sec->shdr.sh_size) { in read_strtabs()
459 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs()
462 sec->shdr.sh_size); in read_symtabs()
468 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) in read_symtabs()
469 != sec->shdr.sh_size) { in read_symtabs()
473 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { in read_symtabs()
492 sec->reltab = malloc(sec->shdr.sh_size); in read_relocs()
495 sec->shdr.sh_size); in read_relocs()
501 if (fread(sec->reltab, 1, sec->shdr.sh_size, fp) in read_relocs()
502 != sec->shdr.sh_size) { in read_relocs()
506 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { in read_relocs()
539 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { in print_absolute_symbols()
584 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { in print_absolute_relocs()
669 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { in walk_relocs()