Home
last modified time | relevance | path

Searched refs:ELFW (Results 1 - 13 of 13) sorted by relevance

/third_party/elfutils/libelf/
H A Delf32_newphdr.c71 elf->class = ELFW(ELFCLASS,LIBELFBITS); in ElfW2()
72 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) in ElfW2()
79 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)) in ElfW2()
90 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL) in ElfW2()
92 if (elf->state.ELFW(elf,LIBELFBITS).phdr_flags & ELF_F_MALLOCED) in ElfW2()
93 free (elf->state.ELFW(elf,LIBELFBITS).phdr); in ElfW2()
96 elf->state.ELFW(elf,LIBELFBITS).phdr = NULL; in ElfW2()
98 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0; in ElfW2()
100 if (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0) in ElfW2()
101 elf->state.ELFW(el in ElfW2()
[all...]
H A Delf32_updatefile.c55 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections()
56 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections()
59 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections()
60 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections()
63 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections()
64 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections()
67 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections()
68 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections()
130 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2()
133 if ((elf->state.ELFW(el in __elfw2()
[all...]
H A Delf32_getshdr.c53 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
56 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
68 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = in ElfW2()
70 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL) in ElfW2()
75 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 1; in ElfW2()
155 elf->state.ELFW(elf,LIBELFBITS).scns.data[shdr[cnt].sh_link].shndx_index in ElfW2()
160 if (elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index == 0) in ElfW2()
161 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index in ElfW2()
173 elf->state.ELFW(elf,LIBELFBITS).shdr, size, in ElfW2()
207 elf->state.ELFW(el in ElfW2()
[all...]
H A Delf32_newehdr.c61 elf->class = ELFW(ELFCLASS,LIBELFBITS); in ElfW2()
62 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) in ElfW2()
70 if (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL) in ElfW2()
73 elf->state.ELFW(elf,LIBELFBITS).ehdr = in ElfW2()
74 &elf->state.ELFW(elf,LIBELFBITS).ehdr_mem; in ElfW2()
77 memset (elf->state.ELFW(elf,LIBELFBITS).ehdr, '\0', in ElfW2()
81 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ElfW2()
84 result = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
H A Delf32_getphdr.c54 result = elf->state.ELFW(elf,LIBELFBITS).phdr; in ElfW2()
59 elf->class = ELFW(ELFCLASS,LIBELFBITS); in ElfW2()
60 else if (elf->class != ELFW(ELFCLASS,LIBELFBITS)) in ElfW2()
70 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
113 elf->state.ELFW(elf,LIBELFBITS).phdr = file_phdr; in ElfW2()
121 phdr = elf->state.ELFW(elf,LIBELFBITS).phdr = in ElfW2()
123 if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL) in ElfW2()
128 elf->state.ELFW(elf,LIBELFBITS).phdr_flags |= in ElfW2()
179 elf->state.ELFW(elf,LIBELFBITS).phdr = in ElfW2()
181 if (elf->state.ELFW(el in ElfW2()
[all...]
H A Delf32_updatenull.c53 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, in ELFW() function
60 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW()
64 update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS), in ELFW()
65 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
72 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW()
87 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
92 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW()
103 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
107 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
112 elf->state.ELFW(el in ELFW()
[all...]
H A Delf32_offscn.c57 Elf_ScnList *runp = &elf->state.ELFW(elf,LIBELFBITS).scns; in elfw2()
62 && unlikely (runp->data[0].shdr.ELFW(e,LIBELFBITS) == NULL) in elfw2()
74 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset) in elfw2()
81 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_size != 0 in elfw2()
82 && runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_type != SHT_NOBITS) in elfw2()
H A Delf32_getehdr.c66 elf->class = ELFW(ELFCLASS,LIBELFBITS); in ElfW2()
68 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) in ElfW2()
74 return elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
H A Delf32_xlatetom.c52 size_t recsize = __libelf_type_sizes[ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type]; in elfw2()
100 fctp = __elf_xfctstom[ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type]; in elfw2()
H A Delf32_xlatetof.c52 size_t recsize = __libelf_type_sizes[ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type]; in elfw2()
95 fctp = __elf_xfctstom[ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type]; in elfw2()
H A Delf32_fsize.c59 return (count * __libelf_type_sizes[ELFW(ELFCLASS,LIBELFBITS) - 1][type]); in elfw2()
H A Delf32_checksum.c74 ident = elf->state.ELFW(elf,LIBELFBITS).ehdr->e_ident; in elfw2()
H A DlibelfP.h54 #define ELFW(Name, Bits) ELFW_(Name, Bits) macro
423 (__libelf_type_sizes[ELFW(ELFCLASS,class) - 1][type] * n)

Completed in 4 milliseconds