Lines Matching refs:state
93 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL))
104 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL)
106 if (elf->state.ELFW(elf,LIBELFBITS).phdr_flags & ELF_F_MALLOCED)
107 free (elf->state.ELFW(elf,LIBELFBITS).phdr);
110 elf->state.ELFW(elf,LIBELFBITS).phdr = NULL;
112 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0;
114 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize =
117 elf->state.ELFW(elf,LIBELFBITS).phdr_flags |= ELF_F_DIRTY;
124 else if (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum != count
125 || elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
130 realloc (elf->state.ELFW(elf,LIBELFBITS).phdr,
137 elf->state.ELFW(elf,LIBELFBITS).phdr = result;
141 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = count;
143 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize =
147 elf->state.ELFW(elf,LIBELFBITS).phdr_flags |=
157 assert (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize
161 elf->state.ELFW(elf,LIBELFBITS).phdr_flags |= ELF_F_DIRTY;
163 result = elf->state.ELFW(elf,LIBELFBITS).phdr;