Lines Matching refs:newelf

1052   Elf *newelf;  in handle_elf()  local
1054 newelf = elf_begin (fd, ELF_C_WRITE_MMAP, NULL); in handle_elf()
1056 newelf = elf_clone (elf, ELF_C_EMPTY); in handle_elf()
1058 if (unlikely (gelf_newehdr (newelf, gelf_getclass (elf)) == 0)) in handle_elf()
1068 if (unlikely (gelf_newphdr (newelf, phnum) == 0)) in handle_elf()
1080 || unlikely (gelf_update_phdr (newelf, cnt, phdr) == 0)) in handle_elf()
1087 if (handle_debug_relocs (elf, ebl, newelf, ehdr, fname, shstrndx, in handle_elf()
1683 shdr_info[cnt].newscn = elf_newscn (newelf); in handle_elf()
1728 shdr_info[cnt].newscn = elf_newscn (newelf); in handle_elf()
1791 shdr_info[cnt].newscn = elf_newscn (newelf); in handle_elf()
1828 scn = elf_getscn (newelf, shdr_info[cnt].idx); in handle_elf()
2100 scn = elf_getscn (newelf, shdr_info[cnt].idx); in handle_elf()
2177 : elf_getscn (newelf, in handle_elf()
2237 scn = elf_getscn (newelf, shdr_info[cnt].idx); in handle_elf()
2240 Elf_Data *symd = elf_getdata (elf_getscn (newelf, in handle_elf()
2379 scn = elf_getscn (newelf, shdr_info[cnt].idx); in handle_elf()
2382 symd = elf_getdata (elf_getscn (newelf, shdr_info[symtabidx].idx), in handle_elf()
2406 verd->d_size = gelf_fsize (newelf, verd->d_type, in handle_elf()
2420 scn = elf_getscn (newelf, shdr_info[cnt].idx); in handle_elf()
2492 if (unlikely (gelf_xlatetof (newelf, &debuglink_crc_data, in handle_elf()
2505 newehdr = gelf_getehdr (newelf, &newehdr_mem); in handle_elf()
2523 if (gelf_update_ehdr (newelf, newehdr) == 0) in handle_elf()
2532 if (update_shdrstrndx (newelf, idx) != 0) in handle_elf()
2551 elf_flagelf (newelf, ELF_C_SET, in handle_elf()
2556 if (elf_update (newelf, ELF_C_WRITE) == -1) in handle_elf()
2638 if (elf_end (newelf) != 0) in handle_elf()