/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_fsize.c | 53 [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 …]
|
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; \ 141 size_t sz = sizeof (ElfW2(Bits, Name)); \ 183 [ELF_T_ADDR] = ElfW2(Bits, cvt_Addr), \ 184 [ELF_T_DYN] = ElfW2(Bits, cvt_Dyn), \ 185 [ELF_T_EHDR] = ElfW2(Bits, cvt_Ehdr), \ 186 [ELF_T_HALF] = ElfW2(Bits, cvt_Half), \ 187 [ELF_T_OFF] = ElfW2(Bits, cvt_Off), \ [all …]
|
D | elf32_getshdr.c | 46 static ElfW2(LIBELFBITS,Shdr) * in ElfW2() function 49 ElfW2(LIBELFBITS,Shdr) *result; in ElfW2() 53 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2() 62 || shnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Shdr))) in ElfW2() 64 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); in ElfW2() 68 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = in ElfW2() 69 (ElfW2(LIBELFBITS,Shdr) *) malloc (size); in ElfW2() 89 ElfW2(LIBELFBITS,Shdr) *notcvt; in ElfW2() 103 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) != 0)); in ElfW2() 117 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) in ElfW2() [all …]
|
D | elf_getdata.c | 79 [ELF_T_ADDR] = __alignof__ (ElfW2(Bits,Addr)), \ 80 [ELF_T_EHDR] = __alignof__ (ElfW2(Bits,Ehdr)), \ 81 [ELF_T_HALF] = __alignof__ (ElfW2(Bits,Half)), \ 82 [ELF_T_OFF] = __alignof__ (ElfW2(Bits,Off)), \ 83 [ELF_T_PHDR] = __alignof__ (ElfW2(Bits,Phdr)), \ 84 [ELF_T_SHDR] = __alignof__ (ElfW2(Bits,Shdr)), \ 85 [ELF_T_SWORD] = __alignof__ (ElfW2(Bits,Sword)), \ 86 [ELF_T_WORD] = __alignof__ (ElfW2(Bits,Word)), \ 87 [ELF_T_XWORD] = __alignof__ (ElfW2(Bits,Xword)), \ 88 [ELF_T_SXWORD] = __alignof__ (ElfW2(Bits,Sxword)), \ [all …]
|
D | elf32_getphdr.c | 46 ElfW2(LIBELFBITS,Phdr) * in ElfW2() function 49 ElfW2(LIBELFBITS,Phdr) *result; in ElfW2() 70 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2() 83 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr)); in ElfW2() 85 if (phnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr)) in ElfW2() 111 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0)) in ElfW2() 116 ElfW2(LIBELFBITS,Phdr) *notcvt; in ElfW2() 117 ElfW2(LIBELFBITS,Phdr) *phdr; in ElfW2() 122 (ElfW2(LIBELFBITS,Phdr) *) malloc (size); in ElfW2() 143 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) in ElfW2() [all …]
|
D | elf32_updatefile.c | 130 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2() 137 assert (sizeof (ElfW2(LIBELFBITS,Ehdr)) in __elfw2() 148 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1); in __elfw2() 152 sizeof (ElfW2(LIBELFBITS,Ehdr))); in __elfw2() 172 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2() 190 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2() 195 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2() 230 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) in __elfw2() 251 void *p = malloc (sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2() 260 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() 62 if (unlikely ((ElfW2(LIBELFBITS,Word)) count != count)) in ElfW2() 105 sizeof (ElfW2(LIBELFBITS,Phdr)); in ElfW2() 118 if (unlikely (count > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr)))) in ElfW2() 137 result = (ElfW2(LIBELFBITS,Phdr) *) in ElfW2() 139 count * sizeof (ElfW2(LIBELFBITS,Phdr))); in ElfW2() 162 memset (result, '\0', count * sizeof (ElfW2(LIBELFBITS,Phdr))); in ElfW2() 185 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_updatenull.c | 53 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, in ELFW() 131 ElfW2(LIBELFBITS,Ehdr) *ehdr; in __elfw2() 142 ElfW2(LIBELFBITS,SizeWord) size = elf_typesize (LIBELFBITS, ELF_T_EHDR, 1); in __elfw2() 209 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2() 213 ElfW2(LIBELFBITS,SizeWord) sh_entsize = shdr->sh_entsize; in __elfw2() 214 ElfW2(LIBELFBITS,SizeWord) sh_align = shdr->sh_addralign ?: 1; in __elfw2() 316 if (unlikely ((ElfW2(LIBELFBITS,SizeWord)) in __elfw2() 384 (ElfW2(LIBELFBITS,SizeWord)) offset, in __elfw2() 401 ElfW2(LIBELFBITS,SizeWord) sh_size; in __elfw2() 406 ElfW2(LIBELFBITS,Chdr) *chdr; in __elfw2() [all …]
|
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_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 | 52 #define ElfW2(Bits, Name) ElfW2_(Bits, Name) macro
|