Lines Matching defs:shdr
72 GElf_Shdr shdr;
80 if (gelf_getshdr(scn, &shdr) == NULL) {
85 if (shdr.sh_type == SHT_SYMTAB)
92 if ((strscn = elf_getscn(elf, shdr.sh_link)) == NULL)
104 for (i = 0; i < shdr.sh_size / shdr.sh_entsize; i++) {
136 GElf_Shdr shdr;
155 if (gelf_getshdr(scn, &shdr) == NULL)
159 sname = elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name);
160 if (shdr.sh_type == SHT_PROGBITS &&
163 ctfsect.cts_type = shdr.sh_type;
164 ctfsect.cts_flags = shdr.sh_flags;
165 ctfsect.cts_size = shdr.sh_size;
166 ctfsect.cts_entsize = shdr.sh_entsize;
167 ctfsect.cts_offset = (off64_t)shdr.sh_offset;
175 } else if (shdr.sh_type == SHT_SYMTAB) {
180 symsect.cts_type = shdr.sh_type;
181 symsect.cts_flags = shdr.sh_flags;
182 symsect.cts_size = shdr.sh_size;
183 symsect.cts_entsize = shdr.sh_entsize;
184 symsect.cts_offset = (off64_t)shdr.sh_offset;
186 if ((strscn = elf_getscn(elf, shdr.sh_link)) == NULL ||