Lines Matching refs:sehdr
458 GElf_Ehdr sehdr, dehdr; in write_file() local
476 gelf_getehdr(src, &sehdr); in write_file()
477 memcpy(&dehdr, &sehdr, sizeof (GElf_Ehdr)); in write_file()
488 if (sehdr.e_phnum != 0) { in write_file()
490 if (gelf_newphdr(dst, sehdr.e_phnum) == NULL) in write_file()
493 for (i = 0; i < sehdr.e_phnum; i++) { in write_file()
501 secxlate = xmalloc(sizeof (int) * sehdr.e_shnum); in write_file()
502 for (srcidx = dstidx = 0; srcidx < sehdr.e_shnum; srcidx++) { in write_file()
508 sname = elf_strptr(src, sehdr.e_shstrndx, shdr1.sh_name); in write_file()
536 for (srcidx = 1; srcidx < sehdr.e_shnum; srcidx++) { in write_file()
556 if (changing && sehdr.e_phnum != 0) { in write_file()
569 sname = elf_strptr(src, sehdr.e_shstrndx, shdr.sh_name); in write_file()
600 if (srcidx == sehdr.e_shstrndx) { in write_file()
612 if (sehdr.e_phnum != 0) in write_file()
672 if (changing && sehdr.e_phnum != 0) { in write_file()
691 if (sehdr.e_phnum != 0) { in write_file()
702 dehdr.e_shstrndx = secxlate[sehdr.e_shstrndx]; in write_file()