Lines Matching refs:elf
42 #include "elf-knowledge.h"
51 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr,
58 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
63 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
70 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
83 /* Unconditionally overwrite the ELF version. */
85 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
90 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
101 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
105 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
110 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
118 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
127 __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum)
133 ehdr = __elfw2(LIBELFBITS,getehdr_wrlock) (elf);
136 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0)
139 /* At least the ELF header is there. */
143 if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL
146 (void) __elfw2(LIBELFBITS,getphdr_wrlock) (elf);
147 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL)
159 if (unlikely (__elf_getphdrnum_rdlock (elf, &phnum) != 0))
162 if (elf->flags & ELF_F_LAYOUT)
186 assert (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0);
192 Elf_Scn *scn0 = &elf->state.ELFW(elf,LIBELFBITS).scns.data[0];
199 list = &elf->state.ELFW(elf,LIBELFBITS).scns;
302 if (elf->flags & ELF_F_LAYOUT)
335 if (elf->flags & ELF_F_LAYOUT)
342 requirement from the ELF specification. Additionally
386 && (elf->flags & ELF_F_PERMISSIVE) == 0)
418 if (elf->flags & ELF_F_LAYOUT)
437 update_if_changed (ehdr->e_shoff, (GElf_Word) size, elf->flags);
444 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ehdr_flags;