Lines Matching defs:elf
24 #include <elf.h>
84 Elf *elf = elf_begin (fd, ELF_C_WRITE, NULL);
85 if (elf == NULL)
92 Elf32_Ehdr *ehdr = elf32_newehdr (elf);
108 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY);
111 Elf32_Phdr *phdr = elf32_newphdr (elf, 2);
121 elf_flagphdr (elf, ELF_C_SET, ELF_F_DIRTY);
125 Elf_Scn *scn = elf_newscn (elf);
182 scn = elf_newscn (elf);
218 elf32_getshdr (elf_getscn (elf, 1))->sh_name = dwelf_strent_off (dynscn);
222 if (elf_update (elf, ELF_C_NULL) < 0)
228 ehdr = elf32_getehdr (elf);
249 if (elf_update (elf, ELF_C_WRITE) < 0)
265 if (elf_end (elf) != 0)