Lines Matching refs:shdr
93 Elf_Shdr *shdr; in do_func() local
115 shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_func()
119 num_sections = _r(&shdr[0].sh_size); in do_func()
123 secindex_strings = r(&shdr[0].sh_link); in do_func()
125 shstrtab_sec = shdr + secindex_strings; in do_func()
128 idx = r(&shdr[i].sh_name); in do_func()
130 extab_sec = shdr + i; in do_func()
133 if ((r(&shdr[i].sh_type) == SHT_REL || in do_func()
134 r(&shdr[i].sh_type) == SHT_RELA) && in do_func()
135 r(&shdr[i].sh_info) == extab_index) { in do_func()
136 relocs = (void *)ehdr + _r(&shdr[i].sh_offset); in do_func()
137 relocs_size = _r(&shdr[i].sh_size); in do_func()
140 symtab_sec = shdr + i; in do_func()
142 strtab_sec = shdr + i; in do_func()
143 if (r(&shdr[i].sh_type) == SHT_SYMTAB_SHNDX) in do_func()
145 (const char *)ehdr + _r(&shdr[i].sh_offset)); in do_func()
195 sort_needed_sec = &shdr[get_secindex(r2(&sym->st_shndx), in do_func()