Home
last modified time | relevance | path

Searched refs:ELFW (Results 1 – 14 of 14) sorted by relevance

/external/elfutils/src/libelf/
Delf32_newphdr.c70 elf->class = ELFW(ELFCLASS,LIBELFBITS);
71 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
78 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL))
89 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL)
91 if (elf->state.ELFW(elf,LIBELFBITS).phdr_flags & ELF_F_MALLOCED)
92 free (elf->state.ELFW(elf,LIBELFBITS).phdr);
95 elf->state.ELFW(elf,LIBELFBITS).phdr = NULL;
97 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0;
99 if (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0)
100 elf->state.ELFW(elf,LIBELFBITS).scns.data[0]
[all …]
Delf32_updatefile.c59 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_offset in compare_sections()
64 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) 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()
71 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections()
72 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections()
111 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2()
114 if ((elf->state.ELFW(elf,LIBELFBITS).ehdr_flags | elf->flags) & ELF_F_DIRTY) in __elfw2()
[all …]
Delf32_getphdr.c57 result = elf->state.ELFW(elf,LIBELFBITS).phdr;
62 elf->class = ELFW(ELFCLASS,LIBELFBITS);
63 else if (elf->class != ELFW(ELFCLASS,LIBELFBITS))
73 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
116 elf->state.ELFW(elf,LIBELFBITS).phdr = file_phdr;
124 phdr = elf->state.ELFW(elf,LIBELFBITS).phdr =
126 if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
131 elf->state.ELFW(elf,LIBELFBITS).phdr_flags |=
172 elf->state.ELFW(elf,LIBELFBITS).phdr =
174 if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
[all …]
Delf32_getshdr.c55 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
58 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
70 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = in ElfW2()
72 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL) in ElfW2()
77 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 1; in ElfW2()
147 elf->state.ELFW(elf,LIBELFBITS).scns.data[shdr[cnt].sh_link].shndx_index in ElfW2()
152 if (elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index == 0) in ElfW2()
153 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index in ElfW2()
162 elf->state.ELFW(elf,LIBELFBITS).shdr, size, in ElfW2()
196 elf->state.ELFW(elf,LIBELFBITS).shdr = NULL; in ElfW2()
[all …]
Delf32_newehdr.c62 elf->class = ELFW(ELFCLASS,LIBELFBITS);
63 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
71 if (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)
74 elf->state.ELFW(elf,LIBELFBITS).ehdr =
75 &elf->state.ELFW(elf,LIBELFBITS).ehdr_mem;
78 memset (elf->state.ELFW(elf,LIBELFBITS).ehdr, '\0',
82 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
85 result = elf->state.ELFW(elf,LIBELFBITS).ehdr;
Delf32_updatenull.c51 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, in ELFW() function
58 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW()
62 update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS), in ELFW()
63 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
70 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW()
85 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
97 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
101 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW()
106 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW()
124 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0) in __elfw2()
[all …]
Delf32_offscn.c59 Elf_ScnList *runp = &elf->state.ELFW(elf,LIBELFBITS).scns;
64 && unlikely (runp->data[0].shdr.ELFW(e,LIBELFBITS) == NULL)
76 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset)
83 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_size != 0
84 && runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_type != SHT_NOBITS)
Delf32_xlatetof.c56 …size_t recsize = __libelf_type_sizes[src->d_version - 1][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_typ…
58 size_t recsize = __libelf_type_sizes[0][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type];
107 …fctp = __elf_xfctstom[dest->d_version - 1][src->d_version - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][src…
109 fctp = __elf_xfctstom[0][0][ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type];
Delf32_xlatetom.c56 …size_t recsize = __libelf_type_sizes[src->d_version - 1][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_typ…
58 size_t recsize = __libelf_type_sizes[0][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type];
112 …fctp = __elf_xfctstom[src->d_version - 1][dest->d_version - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][src…
114 fctp = __elf_xfctstom[0][0][ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type];
Delf32_getehdr.c68 elf->class = ELFW(ELFCLASS,LIBELFBITS);
70 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
76 return elf->state.ELFW(elf,LIBELFBITS).ehdr;
Delf32_fsize.c64 * __libelf_type_sizes[version - 1][ELFW(ELFCLASS,LIBELFBITS) - 1][type]);
67 * __libelf_type_sizes[0][ELFW(ELFCLASS,LIBELFBITS) - 1][type]);
Delf32_checksum.c76 ident = elf->state.ELFW(elf,LIBELFBITS).ehdr->e_ident;
DlibelfP.h59 #define ELFW(Name, Bits) ELFW_(Name, Bits) macro
412 (__libelf_type_sizes[EV_CURRENT - 1][ELFW(ELFCLASS,class) - 1][type] * n)
/external/libunwind/src/ppc32/
DMake-arch.in2 ELFW = 64