Lines Matching refs:shdr
92 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in cache_sections() local
93 if (shdr == NULL) in cache_sections()
96 if ((shdr->sh_flags & SHF_ALLOC) && shdr->sh_addr == 0 in cache_sections()
102 &shdr->sh_addr) != DWFL_E_NOERROR) in cache_sections()
104 shdr = gelf_getshdr (scn, &shdr_mem); in cache_sections()
105 if (unlikely (shdr == NULL)) in cache_sections()
109 if (shdr->sh_flags & SHF_ALLOC) in cache_sections()
112 shdr->sh_name); in cache_sections()
128 newref->start = dwfl_adjusted_address (mod, shdr->sh_addr); in cache_sections()
129 newref->end = newref->start + shdr->sh_size; in cache_sections()
136 && shdr->sh_size != 0 in cache_sections()
137 && (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in cache_sections()
140 if (shdr->sh_info < elf_ndxscn (scn)) in cache_sections()
143 Elf_Scn *tscn = elf_getscn (mod->main.elf, shdr->sh_info); in cache_sections()
195 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in cache_sections() local
196 if (shdr == NULL) in cache_sections()
199 if (shdr->sh_size != 0 in cache_sections()
200 && (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA)) in cache_sections()
202 Elf_Scn *tscn = elf_getscn (mod->main.elf, shdr->sh_info); in cache_sections()