Home | History | Annotate | Download | only in libelf

Lines Matching refs:Elf

63 #include "elf-knowledge.h"
72 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr,
79 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
84 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
91 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
104 /* Unconditionally overwrite the ELF version. */
106 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
118 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
122 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
127 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
136 __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum)
142 ehdr = __elfw2(LIBELFBITS,getehdr_wrlock) (elf);
145 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0)
148 /* At least the ELF header is there. */
152 if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL
155 (void) __elfw2(LIBELFBITS,getphdr_wrlock) (elf);
156 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL)
167 if (elf->flags & ELF_F_LAYOUT)
191 assert (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0);
197 Elf_Scn *scn0 = &elf->state.ELFW(elf,LIBELFBITS).scns.data[0];
204 list = &elf->state.ELFW(elf,LIBELFBITS).scns;
302 if (elf->flags & ELF_F_LAYOUT)
335 if (elf->flags & ELF_F_LAYOUT)
343 requirement from the ELF specification. Additionally
388 && (elf->flags & ELF_F_PERMISSIVE) == 0)
402 if (elf->flags & ELF_F_LAYOUT)
420 update_if_changed (ehdr->e_shoff, (GElf_Word) size, elf->flags);
430 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ehdr_flags;