Lines Matching refs:shdr
95 Elf_Shdr *shdr; in do_func() local
117 shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_func()
121 num_sections = _r(&shdr[0].sh_size); in do_func()
125 secindex_strings = r(&shdr[0].sh_link); in do_func()
127 shstrtab_sec = shdr + secindex_strings; in do_func()
130 idx = r(&shdr[i].sh_name); in do_func()
132 extab_sec = shdr + i; in do_func()
135 if ((r(&shdr[i].sh_type) == SHT_REL || in do_func()
136 r(&shdr[i].sh_type) == SHT_RELA) && in do_func()
137 r(&shdr[i].sh_info) == extab_index) { in do_func()
138 relocs = (void *)ehdr + _r(&shdr[i].sh_offset); in do_func()
139 relocs_size = _r(&shdr[i].sh_size); in do_func()
142 symtab_sec = shdr + i; in do_func()
144 strtab_sec = shdr + i; in do_func()
145 if (r(&shdr[i].sh_type) == SHT_SYMTAB_SHNDX) in do_func()
147 (const char *)ehdr + _r(&shdr[i].sh_offset)); in do_func()
197 sort_needed_sec = &shdr[get_secindex(r2(&sym->st_shndx), in do_func()