/external/elfutils/src/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 | 90 INLINE2 (ELFW2(Bits,FSZ_##NAME), ElfW2(Bits,cvt_##Name), ElfW2(Bits,Name)) 136 ElfW2 (Bits, cvt_##Name) (void *dest, const void *src, size_t len, \ 138 { ElfW2(Bits, Name) *tdest = (ElfW2(Bits, Name) *) dest; \ 139 ElfW2(Bits, Name) *tsrc = (ElfW2(Bits, Name) *) src; \ 141 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 …]
|
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() 104 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) != 0)); in ElfW2() 116 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) == 0) in ElfW2() [all …]
|
D | elf32_updatefile.c | 111 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2() 118 assert (sizeof (ElfW2(LIBELFBITS,Ehdr)) in __elfw2() 134 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1); in __elfw2() 138 sizeof (ElfW2(LIBELFBITS,Ehdr))); in __elfw2() 158 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2() 181 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2() 186 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2() 220 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) in __elfw2() 241 void *p = alloca (sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2() 244 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2() [all …]
|
D | elf32_getphdr.c | 48 ElfW2(LIBELFBITS,Phdr) * 52 ElfW2(LIBELFBITS,Phdr) *result; 73 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 86 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr)); 88 if (phnum > SIZE_MAX / 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) [all …]
|
D | elf32_newphdr.c | 45 ElfW2(LIBELFBITS,Phdr) * 50 ElfW2(LIBELFBITS,Phdr) *result; in ElfW2() function 61 if (unlikely ((ElfW2(LIBELFBITS,Word)) count != count)) 104 sizeof (ElfW2(LIBELFBITS,Phdr)); 117 if (unlikely (count > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr)))) 125 result = (ElfW2(LIBELFBITS,Phdr) *) 127 count * sizeof (ElfW2(LIBELFBITS,Phdr))); 151 memset (result, '\0', count * sizeof (ElfW2(LIBELFBITS,Phdr))); 174 memset (result, '\0', count * sizeof (ElfW2(LIBELFBITS,Phdr)));
|
D | elf_getdata.c | 85 [ELF_T_ADDR] = __alignof__ (ElfW2(Bits,Addr)), \ 86 [ELF_T_HALF] = __alignof__ (ElfW2(Bits,Half)), \ 87 [ELF_T_WORD] = __alignof__ (ElfW2(Bits,Word)), \ 88 [ELF_T_SYM] = __alignof__ (ElfW2(Bits,Sym)), \ 89 [ELF_T_SYMINFO] = __alignof__ (ElfW2(Bits,Syminfo)), \ 90 [ELF_T_REL] = __alignof__ (ElfW2(Bits,Rel)), \ 91 [ELF_T_RELA] = __alignof__ (ElfW2(Bits,Rela)), \ 92 [ELF_T_DYN] = __alignof__ (ElfW2(Bits,Dyn)), \ 93 [ELF_T_VDEF] = __alignof__ (ElfW2(Bits,Verdef)), \ 94 [ELF_T_VDAUX] = __alignof__ (ElfW2(Bits,Verdaux)), \ [all …]
|
D | elf32_getehdr.c | 44 static ElfW2(LIBELFBITS,Ehdr) * 79 ElfW2(LIBELFBITS,Ehdr) * 86 ElfW2(LIBELFBITS,Ehdr) * 90 ElfW2(LIBELFBITS,Ehdr) *result;
|
D | elf32_newehdr.c | 44 ElfW2(LIBELFBITS,Ehdr) * 48 ElfW2(LIBELFBITS,Ehdr) *result; in ElfW2() function 79 sizeof (ElfW2(LIBELFBITS,Ehdr)));
|
D | elf32_updatenull.c | 51 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, in ELFW() 117 ElfW2(LIBELFBITS,Ehdr) *ehdr; in __elfw2() 199 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2() 203 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; in __elfw2() 204 ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1; in __elfw2() 401 #define SHDR_ALIGN sizeof (ElfW2(LIBELFBITS,Off)) in __elfw2()
|
D | elf32_offscn.c | 48 ElfW2(LIBELFBITS,Off) offset;
|
D | exttypes.h | 53 #define END(Bits, Name) } ElfW2(Bits, Name)
|
D | libelfP.h | 57 #define ElfW2(Bits, Name) ElfW2_(Bits, Name) macro
|