Lines Matching refs:shdr

79   GElf_Shdr *shdr;  in binary_end()  local
145 shdr = gelf_getshdr (strscn, &shdr_mem); in binary_end()
146 if (strtabdata == NULL || shdr == NULL) in binary_end()
155 shdr->sh_type = SHT_STRTAB; in binary_end()
156 assert (shdr->sh_entsize == 0); in binary_end()
158 (void) gelf_update_shdr (strscn, shdr); in binary_end()
163 shdr = gelf_getshdr (symscn, &shdr_mem); in binary_end()
164 if (data == NULL || shdr == NULL) in binary_end()
228 shdr = gelf_getshdr (xndxscn, &shdr_mem); in binary_end()
229 if (xndxdata == NULL || shdr == NULL) in binary_end()
236 shdr->sh_type = SHT_SYMTAB_SHNDX; in binary_end()
237 shdr->sh_entsize = sizeof (Elf32_Word); in binary_end()
238 shdr->sh_addralign = sizeof (Elf32_Word); in binary_end()
239 shdr->sh_link = symscnndx; in binary_end()
241 (void) gelf_update_shdr (xndxscn, shdr); in binary_end()
278 shdr->sh_type = SHT_SYMTAB; in binary_end()
279 shdr->sh_link = strscnndx; in binary_end()
280 shdr->sh_info = ptr_local; in binary_end()
281 shdr->sh_entsize = gelf_fsize (ctx->out.elf, ELF_T_SYM, 1, EV_CURRENT); in binary_end()
282 shdr->sh_addralign = gelf_fsize (ctx->out.elf, ELF_T_ADDR, 1, in binary_end()
285 (void) gelf_update_shdr (symscn, shdr); in binary_end()
293 shdr = gelf_getshdr (shstrscn, &shdr_mem); in binary_end()
294 if (shstrscn == NULL || shstrtabdata == NULL || shdr == NULL) in binary_end()
306 shdr->sh_type = SHT_STRTAB; in binary_end()
307 assert (shdr->sh_entsize == 0); in binary_end()
308 shdr->sh_name = ebl_strtaboffset (shstrscn_strent); in binary_end()
310 (void) gelf_update_shdr (shstrscn, shdr); in binary_end()
325 shdr = gelf_getshdr (scn, &shdr_mem); in binary_end()
326 assert (shdr != NULL); in binary_end()
367 shdr->sh_name = ebl_strtaboffset (runp->strent); in binary_end()
368 shdr->sh_type = SHT_GROUP; in binary_end()
369 shdr->sh_flags = 0; in binary_end()
370 shdr->sh_link = symscnndx; in binary_end()
373 shdr->sh_info = (runp->signature != NULL in binary_end()
376 (void) gelf_update_shdr (scn, shdr); in binary_end()
387 shdr = gelf_getshdr (scn, &shdr_mem); in binary_end()
389 shdr->sh_name = ebl_strtaboffset (symscn_strent); in binary_end()
391 (void) gelf_update_shdr (scn, shdr); in binary_end()
398 shdr = gelf_getshdr (scn, &shdr_mem); in binary_end()
400 shdr->sh_name = ebl_strtaboffset (strscn_strent); in binary_end()
402 (void) gelf_update_shdr (scn, shdr); in binary_end()
410 shdr = gelf_getshdr (scn, &shdr_mem); in binary_end()
412 shdr->sh_name = ebl_strtaboffset (xndxscn_strent); in binary_end()
414 (void) gelf_update_shdr (scn, shdr); in binary_end()
422 shdr = gelf_getshdr (asmscn->data.main.scn, &shdr_mem); in binary_end()
424 assert (shdr != NULL); in binary_end()
426 shdr->sh_name = ebl_strtaboffset (asmscn->data.main.strent); in binary_end()
429 shdr->sh_addralign = asmscn->max_align; in binary_end()
431 (void) gelf_update_shdr (asmscn->data.main.scn, shdr); in binary_end()
447 shdr = gelf_getshdr (scn, &shdr_mem); in binary_end()
449 assert (shdr != NULL); in binary_end()
452 shdr->sh_link = shstrscnndx; in binary_end()
454 (void) gelf_update_shdr (scn, shdr); in binary_end()