Home | History | Annotate | Download | only in libelf

Lines Matching refs:LIBELFBITS

32 #ifndef LIBELFBITS
33 # define LIBELFBITS 32
39 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr,
46 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
50 update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS),
51 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
58 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
73 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
85 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
89 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
91 if (unlikely (ehdr->e_ehsize != elf_typesize (LIBELFBITS, ELF_T_EHDR, 1)))
93 ehdr->e_ehsize = elf_typesize (LIBELFBITS, ELF_T_EHDR, 1);
94 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
103 __elfw2(LIBELFBITS,updatenull) (Elf *elf, int *change_bop, size_t shnum)
105 ElfW2(LIBELFBITS,Ehdr) *ehdr = INTUSE(elfw2(LIBELFBITS,getehdr)) (elf);
111 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0)
115 size = elf_typesize (LIBELFBITS, ELF_T_EHDR, 1);
118 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL)
133 + elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum));
138 elf_typesize (LIBELFBITS, ELF_T_EHDR, 1),
142 size += elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum);
151 assert (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0);
157 elf->state.ELFW(elf,LIBELFBITS).scns.data[0].shdr.ELFW(e,LIBELFBITS)->sh_size
159 elf->state.ELFW(elf,LIBELFBITS).scns.data[0].shdr_flags
165 list = &elf->state.ELFW(elf,LIBELFBITS).scns;
174 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS);
176 ElfW2(LIBELFBITS,Word) sh_entsize;
177 ElfW2(LIBELFBITS,Word) sh_align;
187 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1);
190 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_RELA, 1);
207 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_DYN, 1);
210 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_REL, 1);
213 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1);
216 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_MOVE, 1);
219 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYMINFO, 1);
345 + (elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum))));
354 #define SHDR_ALIGN sizeof (ElfW2(LIBELFBITS,Off))
359 elf_typesize (LIBELFBITS, ELF_T_SHDR, 1),
363 size += elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum);
367 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ehdr_flags;