Lines Matching refs:sh_size
281 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup()
413 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs()
432 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs()
435 sec->shdr.sh_size); in read_strtabs()
441 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) in read_strtabs()
442 != sec->shdr.sh_size) { in read_strtabs()
457 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs()
460 sec->shdr.sh_size); in read_symtabs()
466 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) in read_symtabs()
467 != sec->shdr.sh_size) { in read_symtabs()
471 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { in read_symtabs()
490 sec->reltab = malloc(sec->shdr.sh_size); in read_relocs()
493 sec->shdr.sh_size); in read_relocs()
499 if (fread(sec->reltab, 1, sec->shdr.sh_size, fp) in read_relocs()
500 != sec->shdr.sh_size) { in read_relocs()
504 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { in read_relocs()
537 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { in print_absolute_symbols()
582 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { in print_absolute_relocs()
667 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { in walk_relocs()