Lines Matching refs:shdr
203 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size,
212 if (list->data[1].shdr.ELFW(e,LIBELFBITS) == NULL)
220 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS);
223 assert (shdr != NULL);
224 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize;
225 ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1;
228 switch (shdr->sh_type)
271 update_if_changed (shdr->sh_entsize, sh_entsize,
313 > shdr->sh_size))
342 shdr->sh_offset
343 + (shdr->sh_type != SHT_NOBITS
344 ? shdr->sh_size : 0));
351 if (unlikely (! powerof2 (shdr->sh_addralign))
352 || unlikely (shdr->sh_addralign < sh_align))
361 update_if_changed (shdr->sh_addralign, sh_align,
366 update_if_changed (shdr->sh_offset, (GElf_Word) size,
379 update_if_changed (shdr->sh_size, (GElf_Word) offset,
382 if (shdr->sh_type != SHT_NOBITS)
390 if (shdr->sh_entsize != 0
391 && unlikely (shdr->sh_size % shdr->sh_entsize != 0)