Lines Matching defs:sehdr
450 GElf_Ehdr sehdr, dehdr;
468 gelf_getehdr(src, &sehdr);
469 memcpy(&dehdr, &sehdr, sizeof (GElf_Ehdr));
480 if (sehdr.e_phnum != 0) {
482 if (gelf_newphdr(dst, sehdr.e_phnum) == 0)
485 for (i = 0; i < sehdr.e_phnum; i++) {
493 secxlate = xmalloc(sizeof (int) * sehdr.e_shnum);
494 for (srcidx = dstidx = 0; srcidx < sehdr.e_shnum; srcidx++) {
500 sname = elf_strptr(src, sehdr.e_shstrndx, shdr.sh_name);
523 for (srcidx = 1; srcidx < sehdr.e_shnum; srcidx++) {
543 if (changing && sehdr.e_phnum != 0) {
556 sname = elf_strptr(src, sehdr.e_shstrndx, shdr.sh_name);
567 if (srcidx == sehdr.e_shstrndx) {
579 if (sehdr.e_phnum != 0)
631 if (changing && sehdr.e_phnum != 0) {
649 if (sehdr.e_phnum != 0) {
660 dehdr.e_shstrndx = secxlate[sehdr.e_shstrndx];