/third_party/elfutils/libelf/ |
D | elf32_newphdr.c | 40 #ifndef LIBELFBITS 41 # define LIBELFBITS 32 macro 45 ElfW2(LIBELFBITS,Phdr) * in ElfW2() argument 46 elfw2(LIBELFBITS,newphdr) (Elf *elf, size_t count) in ElfW2() 48 ElfW2(LIBELFBITS,Phdr) *result; in ElfW2() 62 if (unlikely ((ElfW2(LIBELFBITS,Word)) count != count)) in ElfW2() 71 elf->class = ELFW(ELFCLASS,LIBELFBITS); in ElfW2() 72 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) in ElfW2() 79 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)) in ElfW2() 90 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL) in ElfW2() [all …]
|
D | gelf_fsize.c | 44 #define TYPE_SIZES(LIBELFBITS) \ argument 45 [ELF_T_ADDR] = ELFW2(LIBELFBITS, FSZ_ADDR), \ 46 [ELF_T_OFF] = ELFW2(LIBELFBITS, FSZ_OFF), \ 48 [ELF_T_HALF] = ELFW2(LIBELFBITS, FSZ_HALF), \ 49 [ELF_T_WORD] = ELFW2(LIBELFBITS, FSZ_WORD), \ 50 [ELF_T_SWORD] = ELFW2(LIBELFBITS, FSZ_SWORD), \ 51 [ELF_T_XWORD] = ELFW2(LIBELFBITS, FSZ_XWORD), \ 52 [ELF_T_SXWORD] = ELFW2(LIBELFBITS, FSZ_SXWORD), \ 53 [ELF_T_EHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Ehdr)), \ 54 [ELF_T_SHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Shdr)), \ [all …]
|
D | gelf_xlate.h | 32 FUNDAMENTAL (ADDR, Addr, LIBELFBITS); 33 FUNDAMENTAL (OFF, Off, LIBELFBITS); 34 FUNDAMENTAL (HALF, Half, LIBELFBITS); 35 FUNDAMENTAL (WORD, Word, LIBELFBITS); 36 FUNDAMENTAL (SWORD, Sword, LIBELFBITS); 37 FUNDAMENTAL (XWORD, Xword, LIBELFBITS); 38 FUNDAMENTAL (SXWORD, Sxword, LIBELFBITS); 41 TYPE (Ehdr, LIBELFBITS) 42 TYPE (Phdr, LIBELFBITS) 43 TYPE (Shdr, LIBELFBITS) [all …]
|
D | elf32_updatenull.c | 42 #ifndef LIBELFBITS 43 # define LIBELFBITS 32 macro 53 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, in ELFW() argument 60 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW() 64 update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS), in ELFW() 65 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW() 72 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW() 87 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW() 92 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; in ELFW() 103 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); in ELFW() [all …]
|
D | elf32_updatefile.c | 44 #ifndef LIBELFBITS 45 # define LIBELFBITS 32 macro 55 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections() 56 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections() 59 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections() 60 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections() 63 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections() 64 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections() 67 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections() 68 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections() [all …]
|
D | elf32_getphdr.c | 42 #ifndef LIBELFBITS 43 # define LIBELFBITS 32 macro 46 ElfW2(LIBELFBITS,Phdr) * in ElfW2() argument 47 __elfw2(LIBELFBITS,getphdr_wrlock) (Elf *elf) in ElfW2() 49 ElfW2(LIBELFBITS,Phdr) *result; in ElfW2() 54 result = elf->state.ELFW(elf,LIBELFBITS).phdr; in ElfW2() 59 elf->class = ELFW(ELFCLASS,LIBELFBITS); in ElfW2() 60 else if (elf->class != ELFW(ELFCLASS,LIBELFBITS)) 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() [all …]
|
D | elf32_getshdr.c | 41 #ifndef LIBELFBITS 42 # define LIBELFBITS 32 macro 46 static ElfW2(LIBELFBITS,Shdr) * in ElfW2() argument 49 ElfW2(LIBELFBITS,Shdr) *result; in ElfW2() 53 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2() 56 result = scn->shdr.ELFW(e,LIBELFBITS); 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() [all …]
|
D | elf32_newehdr.c | 39 #ifndef LIBELFBITS 40 # define LIBELFBITS 32 macro 44 ElfW2(LIBELFBITS,Ehdr) * in ElfW2() argument 45 elfw2(LIBELFBITS,newehdr) (Elf *elf) in ElfW2() 47 ElfW2(LIBELFBITS,Ehdr) *result; in ElfW2() 61 elf->class = ELFW(ELFCLASS,LIBELFBITS); in ElfW2() 62 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) in ElfW2() 70 if (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL) in ElfW2() 73 elf->state.ELFW(elf,LIBELFBITS).ehdr = in ElfW2() 74 &elf->state.ELFW(elf,LIBELFBITS).ehdr_mem; in ElfW2() [all …]
|
D | elf32_getehdr.c | 39 #ifndef LIBELFBITS 40 # define LIBELFBITS 32 macro 44 static ElfW2(LIBELFBITS,Ehdr) * in ElfW2() argument 66 elf->class = ELFW(ELFCLASS,LIBELFBITS); in ElfW2() 68 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) in ElfW2() 74 return elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2() 77 ElfW2(LIBELFBITS,Ehdr) * in ElfW2() argument 79 __elfw2(LIBELFBITS,getehdr_wrlock) (Elf *elf) in ElfW2() 84 ElfW2(LIBELFBITS,Ehdr) * in ElfW2() argument 85 elfw2(LIBELFBITS,getehdr) (Elf *elf) in ElfW2() [all …]
|
D | elf32_offscn.c | 40 #ifndef LIBELFBITS 41 # define LIBELFBITS 32 macro 46 elfw2(LIBELFBITS,offscn) (Elf *elf, ElfW2(LIBELFBITS,Off) offset) in elfw2() argument 57 Elf_ScnList *runp = &elf->state.ELFW(elf,LIBELFBITS).scns; in elfw2() 62 && unlikely (runp->data[0].shdr.ELFW(e,LIBELFBITS) == NULL) in elfw2() 63 && unlikely (elfw2(LIBELFBITS,getshdr) (&runp->data[0]) == NULL)) in elfw2() 74 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset) in elfw2() 81 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_size != 0 in elfw2() 82 && runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_type != SHT_NOBITS) in elfw2() 99 INTDEF(elfw2(LIBELFBITS,offscn))
|
D | elf32_getchdr.c | 37 #ifndef LIBELFBITS 38 # define LIBELFBITS 32 macro 42 ElfW2(LIBELFBITS,Chdr) * in ElfW2() argument 43 elfw2(LIBELFBITS,getchdr) (Elf_Scn *scn) in ElfW2() 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_checksum.c | 43 #ifndef LIBELFBITS 44 # define LIBELFBITS 32 macro 53 elfw2(LIBELFBITS,checksum) (Elf *elf) in elfw2() argument 74 ident = elf->state.ELFW(elf,LIBELFBITS).ehdr->e_ident; in elfw2() 144 if (INTUSE(elfw2(LIBELFBITS,xlatetof)) (data, data, ident[EI_DATA]) in elfw2() 154 if (INTUSE(elfw2(LIBELFBITS,xlatetom)) (data, data, ident[EI_DATA]) in elfw2() 167 INTDEF(elfw2(LIBELFBITS,checksum))
|
D | elf32_xlatetom.c | 39 #ifndef LIBELFBITS 40 # define LIBELFBITS 32 macro 45 elfw2(LIBELFBITS, xlatetom) (Elf_Data *dest, const Elf_Data *src, in elfw2() argument 52 size_t recsize = __libelf_type_sizes[ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type]; in elfw2() 100 fctp = __elf_xfctstom[ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type]; in elfw2() 113 INTDEF(elfw2(LIBELFBITS, xlatetom))
|
D | elf32_xlatetof.c | 39 #ifndef LIBELFBITS 40 # define LIBELFBITS 32 macro 45 elfw2(LIBELFBITS, xlatetof) (Elf_Data *dest, const Elf_Data *src, in elfw2() argument 52 size_t recsize = __libelf_type_sizes[ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type]; in elfw2() 95 fctp = __elf_xfctstom[ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type]; in elfw2() 108 INTDEF(elfw2(LIBELFBITS, xlatetof))
|
D | elf32_fsize.c | 37 #ifndef LIBELFBITS 38 # define LIBELFBITS 32 macro 43 elfw2(LIBELFBITS, fsize) (Elf_Type type, size_t count, unsigned int version) in elfw2() argument 59 return (count * __libelf_type_sizes[ELFW(ELFCLASS,LIBELFBITS) - 1][type]); in elfw2()
|
D | gelf_xlate.c | 41 #ifndef LIBELFBITS 42 # define LIBELFBITS 32 macro 161 #define LIBELFBITS 32 macro 165 #define LIBELFBITS 64 macro
|
D | elf64_getchdr.c | 29 #define LIBELFBITS 64 macro
|
D | elf64_newphdr.c | 30 #define LIBELFBITS 64 macro
|
D | elf64_updatenull.c | 29 #define LIBELFBITS 64 macro
|
D | elf64_xlatetom.c | 30 #define LIBELFBITS 64 macro
|
D | elf64_getshdr.c | 30 #define LIBELFBITS 64 macro
|
D | elf64_checksum.c | 30 #define LIBELFBITS 64 macro
|
D | elf64_offscn.c | 30 #define LIBELFBITS 64 macro
|
D | elf64_getehdr.c | 30 #define LIBELFBITS 64 macro
|
/third_party/skia/buildtools/third_party/eu-strip/ |
D | fix-elf-size.patch | 5 @@ -137,7 +137,7 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) 9 - off_t size = elf_typesize (LIBELFBITS, ELF_T_EHDR, 1); 10 + ElfW2(LIBELFBITS,Off) size = elf_typesize (LIBELFBITS, ELF_T_EHDR, 1); 13 if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL) 14 @@ -152,7 +152,7 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) 21 + elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum)); 23 @@ -330,7 +330,7 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) 32 @@ -352,9 +352,9 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) 37 + size = (size + sh_align - 1) & ~(ElfW2(LIBELFBITS,Off))(sh_align - 1); 44 @@ -416,7 +416,7 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) [all …]
|