/external/elfutils/libelf/ |
D | abstract.h | 35 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 …]
|
D | gelf_xlate.c | 91 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) { 180 [ELF_T_ADDR] = ElfW2(Bits, cvt_Addr), \ 181 [ELF_T_DYN] = ElfW2(Bits, cvt_Dyn), \ 182 [ELF_T_EHDR] = ElfW2(Bits, cvt_Ehdr), \ 183 [ELF_T_HALF] = ElfW2(Bits, cvt_Half), \ 184 [ELF_T_OFF] = ElfW2(Bits, cvt_Off), \ [all …]
|
D | gelf_fsize.c | 55 [ELF_T_EHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Ehdr)), \ 56 [ELF_T_SHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Shdr)), \ 57 [ELF_T_SYM] = sizeof (ElfW2(LIBELFBITS, Ext_Sym)), \ 58 [ELF_T_REL] = sizeof (ElfW2(LIBELFBITS, Ext_Rel)), \ 59 [ELF_T_RELA] = sizeof (ElfW2(LIBELFBITS, Ext_Rela)), \ 60 [ELF_T_PHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Phdr)), \ 61 [ELF_T_DYN] = sizeof (ElfW2(LIBELFBITS, Ext_Dyn)), \ 62 [ELF_T_VDEF] = sizeof (ElfW2(LIBELFBITS, Ext_Verdef)), \ 63 [ELF_T_VDAUX] = sizeof (ElfW2(LIBELFBITS, Ext_Verdaux)), \ 64 [ELF_T_VNEED] = sizeof (ElfW2(LIBELFBITS, Ext_Verneed)), \ [all …]
|
D | elf32_getshdr.c | 48 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 …]
|
D | elf32_getphdr.c | 48 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 …]
|
D | elf_getdata.c | 85 [ELF_T_ADDR] = __alignof__ (ElfW2(Bits,Addr)), \ 86 [ELF_T_EHDR] = __alignof__ (ElfW2(Bits,Ehdr)), \ 87 [ELF_T_HALF] = __alignof__ (ElfW2(Bits,Half)), \ 88 [ELF_T_OFF] = __alignof__ (ElfW2(Bits,Off)), \ 89 [ELF_T_PHDR] = __alignof__ (ElfW2(Bits,Phdr)), \ 90 [ELF_T_SHDR] = __alignof__ (ElfW2(Bits,Shdr)), \ 91 [ELF_T_SWORD] = __alignof__ (ElfW2(Bits,Sword)), \ 92 [ELF_T_WORD] = __alignof__ (ElfW2(Bits,Word)), \ 93 [ELF_T_XWORD] = __alignof__ (ElfW2(Bits,Xword)), \ 94 [ELF_T_SXWORD] = __alignof__ (ElfW2(Bits,Sxword)), \ [all …]
|
D | elf32_updatefile.c | 134 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2() 141 assert (sizeof (ElfW2(LIBELFBITS,Ehdr)) in __elfw2() 157 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1); in __elfw2() 161 sizeof (ElfW2(LIBELFBITS,Ehdr))); in __elfw2() 181 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2() 204 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2() 209 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2() 248 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) in __elfw2() 269 void *p = malloc (sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2() 277 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2() [all …]
|
D | elf32_newphdr.c | 45 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()
|
D | elf32_getchdr.c | 42 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()
|
D | elf32_getehdr.c | 44 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()
|
D | elf32_newehdr.c | 44 ElfW2(LIBELFBITS,Ehdr) * in ElfW2() function 47 ElfW2(LIBELFBITS,Ehdr) *result; in ElfW2() 78 sizeof (ElfW2(LIBELFBITS,Ehdr))); in ElfW2()
|
D | elf32_updatenull.c | 51 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, in ELFW() 129 ElfW2(LIBELFBITS,Ehdr) *ehdr; in __elfw2() 211 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2() 215 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; in __elfw2() 216 ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1; in __elfw2() 389 ElfW2(LIBELFBITS,Word) sh_size; in __elfw2() 394 ElfW2(LIBELFBITS,Chdr) *chdr; in __elfw2() 434 #define SHDR_ALIGN sizeof (ElfW2(LIBELFBITS,Off)) in __elfw2()
|
D | elf32_offscn.c | 46 elfw2(LIBELFBITS,offscn) (Elf *elf, ElfW2(LIBELFBITS,Off) offset) in elfw2()
|
D | exttypes.h | 53 #define END(Bits, Name) } ElfW2(Bits, Name)
|
D | libelfP.h | 58 #define ElfW2(Bits, Name) ElfW2_(Bits, Name) macro
|