Home
last modified time | relevance | path

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

/external/elfutils/libelf/
Dabstract.h56 TYPE_NAME (ElfW2(Bits, Ext##Half), e_type) \
57 TYPE_NAME (ElfW2(Bits, Ext##Half), e_machine) \
58 TYPE_NAME (ElfW2(Bits, Ext##Word), e_version) \
59 TYPE_NAME (ElfW2(Bits, Ext##Addr), e_entry) \
60 TYPE_NAME (ElfW2(Bits, Ext##Off), e_phoff) \
61 TYPE_NAME (ElfW2(Bits, Ext##Off), e_shoff) \
62 TYPE_NAME (ElfW2(Bits, Ext##Word), e_flags) \
63 TYPE_NAME (ElfW2(Bits, Ext##Half), e_ehsize) \
64 TYPE_NAME (ElfW2(Bits, Ext##Half), e_phentsize) \
65 TYPE_NAME (ElfW2(Bits, Ext##Half), e_phnum) \
[all …]
Dgelf_xlate.c111 INLINE2 (ELFW2(Bits,FSZ_##NAME), ElfW2(Bits,cvt_##Name), ElfW2(Bits,Name))
157 ElfW2 (Bits, cvt_##Name) (void *dest, const void *src, size_t len, \
159 { ElfW2(Bits, Name) *tdest = (ElfW2(Bits, Name) *) dest; \
160 ElfW2(Bits, Name) *tsrc = (ElfW2(Bits, Name) *) src; \
162 for (n = len / sizeof (ElfW2(Bits, Name)); n > 0; ++tdest, ++tsrc, --n) {
199 [ELF_T_ADDR] = ElfW2(Bits, cvt_Addr), \
200 [ELF_T_DYN] = ElfW2(Bits, cvt_Dyn), \
201 [ELF_T_EHDR] = ElfW2(Bits, cvt_Ehdr), \
202 [ELF_T_HALF] = ElfW2(Bits, cvt_Half), \
203 [ELF_T_OFF] = ElfW2(Bits, cvt_Off), \
[all …]
Dgelf_fsize.c76 [ELF_T_EHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Ehdr)), \
77 [ELF_T_SHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Shdr)), \
78 [ELF_T_SYM] = sizeof (ElfW2(LIBELFBITS, Ext_Sym)), \
79 [ELF_T_REL] = sizeof (ElfW2(LIBELFBITS, Ext_Rel)), \
80 [ELF_T_RELA] = sizeof (ElfW2(LIBELFBITS, Ext_Rela)), \
81 [ELF_T_PHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Phdr)), \
82 [ELF_T_DYN] = sizeof (ElfW2(LIBELFBITS, Ext_Dyn)), \
83 [ELF_T_VDEF] = sizeof (ElfW2(LIBELFBITS, Ext_Verdef)), \
84 [ELF_T_VDAUX] = sizeof (ElfW2(LIBELFBITS, Ext_Verdaux)), \
85 [ELF_T_VNEED] = sizeof (ElfW2(LIBELFBITS, Ext_Verneed)), \
[all …]
Delf32_getshdr.c69 static ElfW2(LIBELFBITS,Shdr) * in ElfW2() function
72 ElfW2(LIBELFBITS,Shdr) *result; in ElfW2()
76 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 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()
101 ElfW2(LIBELFBITS,Shdr) *notcvt; in ElfW2()
111 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) != 0)); in ElfW2()
123 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) == 0) in ElfW2()
124 notcvt = (ElfW2(LIBELFBITS,Shdr) *) in ElfW2()
[all …]
Delf32_getphdr.c69 ElfW2(LIBELFBITS,Phdr) *
73 ElfW2(LIBELFBITS,Phdr) *result;
94 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
104 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr));
114 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0))
119 ElfW2(LIBELFBITS,Phdr) *notcvt;
120 ElfW2(LIBELFBITS,Phdr) *phdr;
125 (ElfW2(LIBELFBITS,Phdr) *) malloc (size);
146 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0)
150 notcvt = (ElfW2(LIBELFBITS,Phdr) *) alloca (size);
[all …]
Delf32_updatefile.c129 ElfW2(LIBELFBITS,Ehdr) *ehdr; in __elfw2()
140 assert (sizeof (ElfW2(LIBELFBITS,Ehdr)) in __elfw2()
156 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1); in __elfw2()
160 sizeof (ElfW2(LIBELFBITS,Ehdr))); in __elfw2()
172 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2()
195 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1); in __elfw2()
200 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum); in __elfw2()
227 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) in __elfw2()
248 void *p = alloca (sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
251 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
[all …]
Delf_getdata.c106 [ELF_T_ADDR] = __alignof__ (ElfW2(Bits,Addr)), \
107 [ELF_T_HALF] = __alignof__ (ElfW2(Bits,Half)), \
108 [ELF_T_WORD] = __alignof__ (ElfW2(Bits,Word)), \
109 [ELF_T_SYM] = __alignof__ (ElfW2(Bits,Sym)), \
110 [ELF_T_SYMINFO] = __alignof__ (ElfW2(Bits,Syminfo)), \
111 [ELF_T_REL] = __alignof__ (ElfW2(Bits,Rel)), \
112 [ELF_T_RELA] = __alignof__ (ElfW2(Bits,Rela)), \
113 [ELF_T_DYN] = __alignof__ (ElfW2(Bits,Dyn)), \
114 [ELF_T_VDEF] = __alignof__ (ElfW2(Bits,Verdef)), \
115 [ELF_T_VDAUX] = __alignof__ (ElfW2(Bits,Verdaux)), \
[all …]
Delf32_newphdr.c66 ElfW2(LIBELFBITS,Phdr) *
71 ElfW2(LIBELFBITS,Phdr) *result; in ElfW2() function
115 sizeof (ElfW2(LIBELFBITS,Phdr));
129 result = (ElfW2(LIBELFBITS,Phdr) *)
131 count * sizeof (ElfW2(LIBELFBITS,Phdr)));
139 memset (result, '\0', count * sizeof (ElfW2(LIBELFBITS,Phdr)));
Delf32_getehdr.c65 static ElfW2(LIBELFBITS,Ehdr) *
100 ElfW2(LIBELFBITS,Ehdr) *
107 ElfW2(LIBELFBITS,Ehdr) *
111 ElfW2(LIBELFBITS,Ehdr) *result;
Delf32_newehdr.c65 ElfW2(LIBELFBITS,Ehdr) *
69 ElfW2(LIBELFBITS,Ehdr) *result; in ElfW2() function
100 sizeof (ElfW2(LIBELFBITS,Ehdr)));
Delf32_updatenull.c72 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, in ELFW()
138 ElfW2(LIBELFBITS,Ehdr) *ehdr; in __elfw2()
216 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2()
220 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; in __elfw2()
221 ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1; in __elfw2()
417 #define SHDR_ALIGN sizeof (ElfW2(LIBELFBITS,Off)) in __elfw2()
Delf32_offscn.c69 ElfW2(LIBELFBITS,Off) offset;
Dexttypes.h74 #define END(Bits, Name) } ElfW2(Bits, Name)
DlibelfP.h78 #define ElfW2(Bits, Name) ElfW2_(Bits, Name) macro