Lines Matching refs:elf
45 elfw2(LIBELFBITS,newehdr) (Elf *elf) in ElfW2()
49 if (elf == NULL) in ElfW2()
52 if (unlikely (elf->kind != ELF_K_ELF)) in ElfW2()
58 rwlock_wrlock (elf->lock); in ElfW2()
60 if (elf->class == 0) in ElfW2()
61 elf->class = ELFW(ELFCLASS,LIBELFBITS); in ElfW2()
62 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) in ElfW2()
70 if (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL) in ElfW2()
73 elf->state.ELFW(elf,LIBELFBITS).ehdr = in ElfW2()
74 &elf->state.ELFW(elf,LIBELFBITS).ehdr_mem; in ElfW2()
77 memset (elf->state.ELFW(elf,LIBELFBITS).ehdr, '\0', in ElfW2()
81 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ElfW2()
84 result = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
87 rwlock_unlock (elf->lock); in ElfW2()