• Home
  • Raw
  • Download

Lines Matching refs:LIBELFBITS

65 #ifndef LIBELFBITS
66 # define LIBELFBITS 32 macro
72 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, in ELFW() argument
79 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW()
83 update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS), in ELFW()
84 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
91 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW()
106 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
118 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
122 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
124 if (unlikely (ehdr->e_ehsize != elf_typesize (LIBELFBITS, ELF_T_EHDR, 1))) in ELFW()
126 ehdr->e_ehsize = elf_typesize (LIBELFBITS, ELF_T_EHDR, 1); in ELFW()
127 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW()
136 __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) in __elfw2() argument
138 ElfW2(LIBELFBITS,Ehdr) *ehdr; in __elfw2()
142 ehdr = __elfw2(LIBELFBITS,getehdr_wrlock) (elf); in __elfw2()
145 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0) in __elfw2()
149 off_t size = elf_typesize (LIBELFBITS, ELF_T_EHDR, 1); in __elfw2()
152 if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL in __elfw2()
155 (void) __elfw2(LIBELFBITS,getphdr_wrlock) (elf); in __elfw2()
156 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL) in __elfw2()
177 + elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum)); in __elfw2()
182 elf_typesize (LIBELFBITS, ELF_T_EHDR, 1), in __elfw2()
186 size += elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum); in __elfw2()
195 assert (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0); in __elfw2()
201 Elf_Scn *scn0 = &elf->state.ELFW(elf,LIBELFBITS).scns.data[0]; in __elfw2()
203 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, in __elfw2()
208 list = &elf->state.ELFW(elf,LIBELFBITS).scns; in __elfw2()
212 if (list->data[1].shdr.ELFW(e,LIBELFBITS) == NULL) in __elfw2()
213 (void) __elfw2(LIBELFBITS,getshdr_wrlock) (&list->data[1]); in __elfw2()
220 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2()
224 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; in __elfw2()
225 ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1; in __elfw2()
231 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1); in __elfw2()
234 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_RELA, 1); in __elfw2()
251 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_DYN, 1); in __elfw2()
254 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_REL, 1); in __elfw2()
257 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1); in __elfw2()
260 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_MOVE, 1); in __elfw2()
263 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYMINFO, 1); in __elfw2()
413 + (elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum)))); in __elfw2()
422 #define SHDR_ALIGN sizeof (ElfW2(LIBELFBITS,Off)) in __elfw2()
427 elf_typesize (LIBELFBITS, ELF_T_SHDR, 1), in __elfw2()
431 size += elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum); in __elfw2()
435 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ehdr_flags; in __elfw2()