Home
last modified time | relevance | path

Searched refs:LIBELFBITS (Results 1 – 25 of 28) sorted by relevance

12

/external/elfutils/0.153/libelf/
Delf32_newphdr.c61 #ifndef LIBELFBITS
62 # define LIBELFBITS 32 macro
66 ElfW2(LIBELFBITS,Phdr) *
67 elfw2(LIBELFBITS,newphdr) (elf, count)
71 ElfW2(LIBELFBITS,Phdr) *result; in ElfW2() argument
82 if (unlikely ((ElfW2(LIBELFBITS,Word)) count != count))
91 elf->class = ELFW(ELFCLASS,LIBELFBITS);
92 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
99 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL))
110 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL)
[all …]
Dgelf_xlate.h53 FUNDAMENTAL (ADDR, Addr, LIBELFBITS);
54 FUNDAMENTAL (OFF, Off, LIBELFBITS);
55 FUNDAMENTAL (HALF, Half, LIBELFBITS);
56 FUNDAMENTAL (WORD, Word, LIBELFBITS);
57 FUNDAMENTAL (SWORD, Sword, LIBELFBITS);
58 FUNDAMENTAL (XWORD, Xword, LIBELFBITS);
59 FUNDAMENTAL (SXWORD, Sxword, LIBELFBITS);
62 TYPE (Ehdr, LIBELFBITS)
63 TYPE (Phdr, LIBELFBITS)
64 TYPE (Shdr, LIBELFBITS)
[all …]
Dgelf_fsize.c67 #define TYPE_SIZES(LIBELFBITS) \ argument
68 [ELF_T_ADDR] = ELFW2(LIBELFBITS, FSZ_ADDR), \
69 [ELF_T_OFF] = ELFW2(LIBELFBITS, FSZ_OFF), \
71 [ELF_T_HALF] = ELFW2(LIBELFBITS, FSZ_HALF), \
72 [ELF_T_WORD] = ELFW2(LIBELFBITS, FSZ_WORD), \
73 [ELF_T_SWORD] = ELFW2(LIBELFBITS, FSZ_SWORD), \
74 [ELF_T_XWORD] = ELFW2(LIBELFBITS, FSZ_XWORD), \
75 [ELF_T_SXWORD] = ELFW2(LIBELFBITS, FSZ_SXWORD), \
76 [ELF_T_EHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Ehdr)), \
77 [ELF_T_SHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Shdr)), \
[all …]
Delf32_updatefile.c69 #ifndef LIBELFBITS
70 # define LIBELFBITS 32 macro
80 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections()
81 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections()
84 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections()
85 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections()
88 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections()
89 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections()
92 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections()
93 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections()
[all …]
Delf32_getphdr.c65 #ifndef LIBELFBITS
66 # define LIBELFBITS 32 macro
69 ElfW2(LIBELFBITS,Phdr) *
70 __elfw2(LIBELFBITS,getphdr_wrlock) (elf)
73 ElfW2(LIBELFBITS,Phdr) *result;
78 result = elf->state.ELFW(elf,LIBELFBITS).phdr;
83 elf->class = ELFW(ELFCLASS,LIBELFBITS);
84 else if (elf->class != ELFW(ELFCLASS,LIBELFBITS))
94 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
106 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr));
[all …]
Delf32_getshdr.c64 #ifndef LIBELFBITS
65 # define LIBELFBITS 32 macro
69 static ElfW2(LIBELFBITS,Shdr) * in ElfW2() argument
72 ElfW2(LIBELFBITS,Shdr) *result; in ElfW2()
76 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
79 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
86 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); in ElfW2()
90 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = in ElfW2()
91 (ElfW2(LIBELFBITS,Shdr) *) malloc (size); in ElfW2()
92 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL) in ElfW2()
[all …]
Delf32_updatenull.c65 #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()
[all …]
Delf32_newehdr.c60 #ifndef LIBELFBITS
61 # define LIBELFBITS 32 macro
65 ElfW2(LIBELFBITS,Ehdr) *
66 elfw2(LIBELFBITS,newehdr) (elf)
69 ElfW2(LIBELFBITS,Ehdr) *result; in ElfW2() argument
83 elf->class = ELFW(ELFCLASS,LIBELFBITS);
84 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
92 if (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)
95 elf->state.ELFW(elf,LIBELFBITS).ehdr =
96 &elf->state.ELFW(elf,LIBELFBITS).ehdr_mem;
[all …]
Delf32_getehdr.c60 #ifndef LIBELFBITS
61 # define LIBELFBITS 32 macro
65 static ElfW2(LIBELFBITS,Ehdr) *
89 elf->class = ELFW(ELFCLASS,LIBELFBITS);
91 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
97 return elf->state.ELFW(elf,LIBELFBITS).ehdr;
100 ElfW2(LIBELFBITS,Ehdr) *
101 __elfw2(LIBELFBITS,getehdr_wrlock) (elf)
107 ElfW2(LIBELFBITS,Ehdr) *
108 elfw2(LIBELFBITS,getehdr) (elf)
[all …]
Delf32_offscn.c61 #ifndef LIBELFBITS
62 # define LIBELFBITS 32 macro
67 elfw2(LIBELFBITS,offscn) (elf, offset)
69 ElfW2(LIBELFBITS,Off) offset;
80 Elf_ScnList *runp = &elf->state.ELFW(elf,LIBELFBITS).scns;
85 && unlikely (runp->data[0].shdr.ELFW(e,LIBELFBITS) == NULL)
86 && unlikely (elfw2(LIBELFBITS,getshdr) (&runp->data[0]) == NULL))
97 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset)
104 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_size != 0)
121 INTDEF(elfw2(LIBELFBITS,offscn))
Delf32_fsize.c58 #ifndef LIBELFBITS
59 # define LIBELFBITS 32 macro
64 elfw2(LIBELFBITS, fsize) (type, count, version)
85 * __libelf_type_sizes[version - 1][ELFW(ELFCLASS,LIBELFBITS) - 1][type]);
88 * __libelf_type_sizes[0][ELFW(ELFCLASS,LIBELFBITS) - 1][type]);
93 local_strong_alias (elfw2(LIBELFBITS, fsize), __elfw2(LIBELFBITS, msize))
Delf32_xlatetof.c61 #ifndef LIBELFBITS
62 # define LIBELFBITS 32 macro
67 elfw2(LIBELFBITS, xlatetof) (dest, src, encode)
77 …size_t recsize = __libelf_type_sizes[src->d_version - 1][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_typ…
79 size_t recsize = __libelf_type_sizes[0][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type];
128 …fctp = __elf_xfctstom[dest->d_version - 1][src->d_version - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][src…
130 fctp = __elf_xfctstom[0][0][ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type];
144 INTDEF(elfw2(LIBELFBITS, xlatetof))
Delf32_xlatetom.c61 #ifndef LIBELFBITS
62 # define LIBELFBITS 32 macro
67 elfw2(LIBELFBITS, xlatetom) (dest, src, encode)
77 …size_t recsize = __libelf_type_sizes[src->d_version - 1][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_typ…
79 size_t recsize = __libelf_type_sizes[0][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type];
129 …fctp = __elf_xfctstom[src->d_version - 1][dest->d_version - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][src…
131 fctp = __elf_xfctstom[0][0][ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type];
145 INTDEF(elfw2(LIBELFBITS, xlatetom))
Delf32_checksum.c65 #ifndef LIBELFBITS
66 # define LIBELFBITS 32 macro
80 elfw2(LIBELFBITS,checksum) (elf)
102 ident = elf->state.ELFW(elf,LIBELFBITS).ehdr->e_ident;
172 if (INTUSE(elfw2(LIBELFBITS,xlatetof)) (data, data, ident[EI_DATA])
182 if (INTUSE(elfw2(LIBELFBITS,xlatetom)) (data, data, ident[EI_DATA])
195 INTDEF(elfw2(LIBELFBITS,checksum))
Dgelf_xlate.c62 #ifndef LIBELFBITS
63 # define LIBELFBITS 32 macro
176 #define LIBELFBITS 32 macro
180 #define LIBELFBITS 64 macro
Delf64_xlatetom.c51 #define LIBELFBITS 64 macro
Delf64_getphdr.c51 #define LIBELFBITS 64 macro
Delf64_checksum.c51 #define LIBELFBITS 64 macro
Delf64_updatefile.c50 #define LIBELFBITS 64 macro
Delf64_newehdr.c51 #define LIBELFBITS 64 macro
Delf64_offscn.c51 #define LIBELFBITS 64 macro
Delf64_fsize.c51 #define LIBELFBITS 64 macro
Delf64_newphdr.c51 #define LIBELFBITS 64 macro
Delf64_updatenull.c50 #define LIBELFBITS 64 macro
Delf64_xlatetof.c51 #define LIBELFBITS 64 macro

12