Lines Matching refs:newelf
513 Elf *newelf; in handle_elf() local
515 newelf = elf_begin (fd, ELF_C_WRITE_MMAP, NULL); in handle_elf()
517 newelf = elf_clone (elf, ELF_C_EMPTY); in handle_elf()
519 if (unlikely (gelf_newehdr (newelf, gelf_getclass (elf)) == 0) in handle_elf()
521 && unlikely (gelf_newphdr (newelf, phnum) == 0))) in handle_elf()
535 || unlikely (gelf_update_phdr (newelf, cnt, phdr) == 0)) in handle_elf()
1022 shdr_info[cnt].newscn = elf_newscn (newelf); in handle_elf()
1059 shdr_info[cnt].newscn = elf_newscn (newelf); in handle_elf()
1116 shdr_info[cnt].newscn = elf_newscn (newelf); in handle_elf()
1142 scn = elf_getscn (newelf, shdr_info[cnt].idx); in handle_elf()
1422 : elf_getscn (newelf, in handle_elf()
1476 scn = elf_getscn (newelf, shdr_info[cnt].idx); in handle_elf()
1479 Elf_Data *symd = elf_getdata (elf_getscn (newelf, in handle_elf()
1603 scn = elf_getscn (newelf, shdr_info[cnt].idx); in handle_elf()
1606 symd = elf_getdata (elf_getscn (newelf, shdr_info[symtabidx].idx), in handle_elf()
1628 verd->d_size = gelf_fsize (newelf, verd->d_type, in handle_elf()
1642 scn = elf_getscn (newelf, shdr_info[cnt].idx); in handle_elf()
1915 if (unlikely (gelf_xlatetof (newelf, &debuglink_crc_data, in handle_elf()
1924 newehdr = gelf_getehdr (newelf, &newehdr_mem); in handle_elf()
1960 if (gelf_update_ehdr (newelf, newehdr) == 0) in handle_elf()
1977 elf_flagelf (newelf, ELF_C_SET, in handle_elf()
1982 if (elf_update (newelf, ELF_C_WRITE) == -1) in handle_elf()
2064 if (elf_end (newelf) != 0) in handle_elf()