Lines Matching refs:shdr
134 GElf_Shdr *shdr = gelf_getshdr (shstrtab_scn, &shdr_mem); in add_sections() local
135 if (shdr == NULL) in add_sections()
142 size_t shstrtab_idx = shdr->sh_name; in add_sections()
143 shdr->sh_name = old_shstrtab_idx; in add_sections()
145 if (gelf_update_shdr (shstrtab_scn, shdr) == 0) in add_sections()
177 shdr = gelf_getshdr (scn, &shdr_mem); in add_sections()
178 if (shdr == NULL) in add_sections()
185 shdr->sh_type = SHT_PROGBITS; in add_sections()
186 shdr->sh_flags = 0; in add_sections()
187 shdr->sh_addr = 0; in add_sections()
188 shdr->sh_link = SHN_UNDEF; in add_sections()
189 shdr->sh_info = SHN_UNDEF; in add_sections()
190 shdr->sh_addralign = 1; in add_sections()
191 shdr->sh_entsize = 0; in add_sections()
192 shdr->sh_size = data->d_size; in add_sections()
193 shdr->sh_name = extra_idx; in add_sections()
195 if (gelf_update_shdr (scn, shdr) == 0) in add_sections()
224 shdr = gelf_getshdr (new_shstrtab_scn, &shdr_mem); in add_sections()
225 if (shdr == NULL) in add_sections()
232 shdr->sh_type = SHT_STRTAB; in add_sections()
233 shdr->sh_flags = 0; in add_sections()
234 shdr->sh_addr = 0; in add_sections()
235 shdr->sh_link = SHN_UNDEF; in add_sections()
236 shdr->sh_info = SHN_UNDEF; in add_sections()
237 shdr->sh_addralign = 1; in add_sections()
238 shdr->sh_entsize = 0; in add_sections()
239 shdr->sh_size = new_shstrtab_size; in add_sections()
240 shdr->sh_name = shstrtab_idx; in add_sections()
243 if (gelf_update_shdr (new_shstrtab_scn, shdr) == 0) in add_sections()