Home
last modified time | relevance | path

Searched refs:LIBELFBITS (Results 1 – 25 of 31) sorted by relevance

12

/third_party/elfutils/libelf/
Delf32_newphdr.c40 #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 …]
Dgelf_fsize.c44 #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 …]
Dgelf_xlate.h32 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 …]
Delf32_updatenull.c42 #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 …]
Delf32_updatefile.c44 #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 …]
Delf32_getphdr.c42 #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 …]
Delf32_getshdr.c41 #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 …]
Delf32_newehdr.c39 #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 …]
Delf32_getehdr.c39 #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 …]
Delf32_offscn.c40 #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))
Delf32_getchdr.c37 #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()
Delf32_checksum.c43 #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))
Delf32_xlatetom.c39 #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))
Delf32_xlatetof.c39 #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))
Delf32_fsize.c37 #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()
Dgelf_xlate.c41 #ifndef LIBELFBITS
42 # define LIBELFBITS 32 macro
161 #define LIBELFBITS 32 macro
165 #define LIBELFBITS 64 macro
Delf64_getchdr.c29 #define LIBELFBITS 64 macro
Delf64_newphdr.c30 #define LIBELFBITS 64 macro
Delf64_updatenull.c29 #define LIBELFBITS 64 macro
Delf64_xlatetom.c30 #define LIBELFBITS 64 macro
Delf64_getshdr.c30 #define LIBELFBITS 64 macro
Delf64_checksum.c30 #define LIBELFBITS 64 macro
Delf64_offscn.c30 #define LIBELFBITS 64 macro
Delf64_getehdr.c30 #define LIBELFBITS 64 macro
/third_party/skia/buildtools/third_party/eu-strip/
Dfix-elf-size.patch5 @@ -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 …]

12