Home
last modified time | relevance | path

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

/external/elfutils/libelf/
Dabstract.h35 TYPE_NAME (ElfW2(Bits, Ext##Half), e_type) \
36 TYPE_NAME (ElfW2(Bits, Ext##Half), e_machine) \
37 TYPE_NAME (ElfW2(Bits, Ext##Word), e_version) \
38 TYPE_NAME (ElfW2(Bits, Ext##Addr), e_entry) \
39 TYPE_NAME (ElfW2(Bits, Ext##Off), e_phoff) \
40 TYPE_NAME (ElfW2(Bits, Ext##Off), e_shoff) \
41 TYPE_NAME (ElfW2(Bits, Ext##Word), e_flags) \
42 TYPE_NAME (ElfW2(Bits, Ext##Half), e_ehsize) \
43 TYPE_NAME (ElfW2(Bits, Ext##Half), e_phentsize) \
44 TYPE_NAME (ElfW2(Bits, Ext##Half), e_phnum) \
[all …]
Dgelf_xlate.c91 INLINE2 (ELFW2(Bits,FSZ_##NAME), ElfW2(Bits,cvt_##Name), ElfW2(Bits,Name))
137 ElfW2 (Bits, cvt_##Name) (void *dest, const void *src, size_t len, \
139 { ElfW2(Bits, Name) *tdest = (ElfW2(Bits, Name) *) dest; \
140 ElfW2(Bits, Name) *tsrc = (ElfW2(Bits, Name) *) src; \
142 for (n = len / sizeof (ElfW2(Bits, Name)); n > 0; ++tdest, ++tsrc, --n) {
178 [ELF_T_ADDR] = ElfW2(Bits, cvt_Addr), \
179 [ELF_T_DYN] = ElfW2(Bits, cvt_Dyn), \
180 [ELF_T_EHDR] = ElfW2(Bits, cvt_Ehdr), \
181 [ELF_T_HALF] = ElfW2(Bits, cvt_Half), \
182 [ELF_T_OFF] = ElfW2(Bits, cvt_Off), \
[all …]
Dgelf_fsize.c53 [ELF_T_EHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Ehdr)), \
54 [ELF_T_SHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Shdr)), \
55 [ELF_T_SYM] = sizeof (ElfW2(LIBELFBITS, Ext_Sym)), \
56 [ELF_T_REL] = sizeof (ElfW2(LIBELFBITS, Ext_Rel)), \
57 [ELF_T_RELA] = sizeof (ElfW2(LIBELFBITS, Ext_Rela)), \
58 [ELF_T_PHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Phdr)), \
59 [ELF_T_DYN] = sizeof (ElfW2(LIBELFBITS, Ext_Dyn)), \
60 [ELF_T_VDEF] = sizeof (ElfW2(LIBELFBITS, Ext_Verdef)), \
61 [ELF_T_VDAUX] = sizeof (ElfW2(LIBELFBITS, Ext_Verdaux)), \
62 [ELF_T_VNEED] = sizeof (ElfW2(LIBELFBITS, Ext_Verneed)), \
[all …]
Delf32_getshdr.c48 static ElfW2(LIBELFBITS,Shdr) * in ElfW2() function
51 ElfW2(LIBELFBITS,Shdr) *result; in ElfW2()
55 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
64 || shnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Shdr))) in ElfW2()
66 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); in ElfW2()
70 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = in ElfW2()
71 (ElfW2(LIBELFBITS,Shdr) *) malloc (size); in ElfW2()
91 ElfW2(LIBELFBITS,Shdr) *notcvt; in ElfW2()
105 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) != 0)); in ElfW2()
119 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) in ElfW2()
[all …]
Delf_getdata.c81 [ELF_T_ADDR] = __alignof__ (ElfW2(Bits,Addr)), \
82 [ELF_T_EHDR] = __alignof__ (ElfW2(Bits,Ehdr)), \
83 [ELF_T_HALF] = __alignof__ (ElfW2(Bits,Half)), \
84 [ELF_T_OFF] = __alignof__ (ElfW2(Bits,Off)), \
85 [ELF_T_PHDR] = __alignof__ (ElfW2(Bits,Phdr)), \
86 [ELF_T_SHDR] = __alignof__ (ElfW2(Bits,Shdr)), \
87 [ELF_T_SWORD] = __alignof__ (ElfW2(Bits,Sword)), \
88 [ELF_T_WORD] = __alignof__ (ElfW2(Bits,Word)), \
89 [ELF_T_XWORD] = __alignof__ (ElfW2(Bits,Xword)), \
90 [ELF_T_SXWORD] = __alignof__ (ElfW2(Bits,Sxword)), \
[all …]
Delf32_getphdr.c48 ElfW2(LIBELFBITS,Phdr) * in ElfW2() function
51 ElfW2(LIBELFBITS,Phdr) *result; in ElfW2()
72 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
85 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr)); in ElfW2()
87 if (phnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr)) in ElfW2()
113 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0)) in ElfW2()
118 ElfW2(LIBELFBITS,Phdr) *notcvt; in ElfW2()
119 ElfW2(LIBELFBITS,Phdr) *phdr; in ElfW2()
124 (ElfW2(LIBELFBITS,Phdr) *) malloc (size); in ElfW2()
145 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) in ElfW2()
[all …]
Delf32_updatefile.c133 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2()
140 assert (sizeof (ElfW2(LIBELFBITS,Ehdr)) in __elfw2()
151 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1); in __elfw2()
155 sizeof (ElfW2(LIBELFBITS,Ehdr))); in __elfw2()
175 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2()
193 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2()
198 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
233 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) in __elfw2()
254 void *p = malloc (sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
263 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
[all …]
Delf32_newphdr.c45 ElfW2(LIBELFBITS,Phdr) * in ElfW2() function
48 ElfW2(LIBELFBITS,Phdr) *result; in ElfW2()
59 if (unlikely ((ElfW2(LIBELFBITS,Word)) count != count)) in ElfW2()
102 sizeof (ElfW2(LIBELFBITS,Phdr)); in ElfW2()
115 if (unlikely (count > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr)))) in ElfW2()
134 result = (ElfW2(LIBELFBITS,Phdr) *) in ElfW2()
136 count * sizeof (ElfW2(LIBELFBITS,Phdr))); in ElfW2()
159 memset (result, '\0', count * sizeof (ElfW2(LIBELFBITS,Phdr))); in ElfW2()
182 memset (result, '\0', count * sizeof (ElfW2(LIBELFBITS,Phdr))); in ElfW2()
Delf32_getchdr.c42 ElfW2(LIBELFBITS,Chdr) * in ElfW2() function
45 ElfW2(LIBELFBITS,Shdr) *shdr = elfw2(LIBELFBITS,getshdr) (scn); in ElfW2()
76 if (d->d_size < sizeof (ElfW2(LIBELFBITS,Chdr)) || d->d_buf == NULL) in ElfW2()
82 return (ElfW2(LIBELFBITS,Chdr) *) d->d_buf; in ElfW2()
Delf32_getehdr.c44 static ElfW2(LIBELFBITS,Ehdr) * in ElfW2() function
77 ElfW2(LIBELFBITS,Ehdr) * in ElfW2() function
84 ElfW2(LIBELFBITS,Ehdr) * in ElfW2() function
87 ElfW2(LIBELFBITS,Ehdr) *result; in ElfW2()
Delf32_updatenull.c51 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, in ELFW()
129 ElfW2(LIBELFBITS,Ehdr) *ehdr; in __elfw2()
207 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2()
211 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; in __elfw2()
212 ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1; in __elfw2()
384 ElfW2(LIBELFBITS,Word) sh_size; in __elfw2()
389 ElfW2(LIBELFBITS,Chdr) *chdr; in __elfw2()
429 #define SHDR_ALIGN sizeof (ElfW2(LIBELFBITS,Off)) in __elfw2()
Delf32_newehdr.c44 ElfW2(LIBELFBITS,Ehdr) * in ElfW2() function
47 ElfW2(LIBELFBITS,Ehdr) *result; in ElfW2()
78 sizeof (ElfW2(LIBELFBITS,Ehdr))); in ElfW2()
Delf32_offscn.c46 elfw2(LIBELFBITS,offscn) (Elf *elf, ElfW2(LIBELFBITS,Off) offset) in elfw2()
Dexttypes.h53 #define END(Bits, Name) } ElfW2(Bits, Name)
DlibelfP.h54 #define ElfW2(Bits, Name) ElfW2_(Bits, Name) macro