Lines Matching defs:elf
46 update_comment(Elf *elf, const char *file, const char *comment)
53 if (elf_getshdrstrndx(elf, &shstrndx) == -1) {
59 while ((scn = elf_nextscn(elf, scn)) != NULL) {
70 if (strcmp(CommentStr, elf_strptr(elf, shstrndx,
83 if ((scn = elf_getscn(elf, shstrndx)) == NULL) {
108 if ((scn = elf_newscn(elf)) == NULL) {
147 if (elf_update(elf, ELF_C_WRITE) == -1)
166 * Initialize the elf library, must be called before elf_begin()
183 Elf *elf;
196 if ((elf = elf_begin(fd, ELF_C_RDWR, 0)) == NULL) {
203 * Determine what kind of elf file this is:
205 if (elf_kind(elf) == ELF_K_ELF)
206 update_comment(elf, elf_fname, new_comment);
209 "elf_kind == %d\n", elf_fname, elf_kind(elf));
211 (void) elf_end(elf);