Lines Matching refs:newshdr
455 GElf_Shdr newshdr; in main() local
456 newshdr.sh_name = (shdr->sh_name != 0 in main()
458 newshdr.sh_type = shdr->sh_type; in main()
459 newshdr.sh_flags = shdr->sh_flags; in main()
460 newshdr.sh_addr = shdr->sh_addr; in main()
461 newshdr.sh_size = shdr->sh_size; in main()
463 newshdr.sh_link = newsecndx (shdr->sh_link, "shdr", ndx, "sh_link", 0); in main()
465 newshdr.sh_link = 0; in main()
467 newshdr.sh_info = newsecndx (shdr->sh_info, "shdr", ndx, "sh_info", 0); in main()
469 newshdr.sh_info = shdr->sh_info; in main()
470 newshdr.sh_entsize = shdr->sh_entsize; in main()
597 newshdr.sh_size = newdata->d_size; in main()
598 newshdr.sh_addralign = newdata->d_align; in main()
604 newshdr.sh_offset = shdr->sh_offset; in main()
608 size_t addralign = newshdr.sh_addralign ?: 1; in main()
610 newshdr.sh_offset = last_offset; in main()
611 if (newshdr.sh_type != SHT_NOBITS) in main()
612 last_offset += newshdr.sh_size; in main()
617 newshdr.sh_addralign = 0; in main()
618 newshdr.sh_size = 0; in main()
619 newshdr.sh_offset = 0; in main()
622 if (gelf_update_shdr (newscn, &newshdr) == 0) in main()