Home
last modified time | relevance | path

Searched refs:elfclass (Results 1 – 16 of 16) sorted by relevance

/openbsd-src/lib/libelf/
H A Dlibelf_xlate.c49 int elfclass, int elfmachine, int direction) in _libelf_xlate() argument
65 assert(elfclass == ELFCLASS32 || elfclass == ELFCLASS64); in _libelf_xlate()
83 if ((fsz = (elfclass == ELFCLASS32 ? elf32_fsize : elf64_fsize) in _libelf_xlate()
87 if ((msz = _libelf_msize(src->d_type, elfclass, src->d_version)) == 0) in _libelf_xlate()
128 _libelf_malign(src->d_type, elfclass)) { in _libelf_xlate()
142 xlator = _libelf_get_translator(src->d_type, direction, elfclass, in _libelf_xlate()
H A Delf_data.c42 int elfclass, elftype; in elf_getdata() local
74 elfclass = e->e_class; in elf_getdata()
76 assert(elfclass == ELFCLASS32 || elfclass == ELFCLASS64); in elf_getdata()
78 if (elfclass == ELFCLASS32) { in elf_getdata()
103 if ((fsz = (elfclass == ELFCLASS32 ? elf32_fsize : elf64_fsize) in elf_getdata()
121 if ((msz = _libelf_msize(elftype, elfclass, e->e_version)) == 0) in elf_getdata()
156 xlate = _libelf_get_translator(elftype, ELF_TOMEMORY, elfclass, in elf_getdata()
H A Dlibelf_align.c89 _libelf_malign(Elf_Type t, int elfclass) in _libelf_malign() argument
94 return (elfclass == ELFCLASS32 ? malign[t].a32 : in _libelf_malign()
128 _libelf_falign(Elf_Type t, int elfclass) in _libelf_falign() argument
133 return (elfclass == ELFCLASS32 ? falign[t].a32 : in _libelf_falign()
H A Dlibelf_msize.m499 _libelf_msize(Elf_Type t, int elfclass, unsigned int version)
103 assert(elfclass == ELFCLASS32 || elfclass == ELFCLASS64);
111 sz = (elfclass == ELFCLASS32) ? msize[t].msz32 : msize[t].msz64;
H A Dlibelf_checksum.c46 _libelf_checksum(Elf *e, int elfclass) in _libelf_checksum() argument
60 if (e->e_class != elfclass) { in _libelf_checksum()
H A Dlibelf_convert.m41081 _libelf_get_translator(Elf_Type t, int direction, int elfclass, int elfmachine)
1083 assert(elfclass == ELFCLASS32 || elfclass == ELFCLASS64);
1090 return ((elfclass == ELFCLASS32) ?
/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Delf-bfd.h433 unsigned char elfclass, ev_current; member
H A Delf.c4391 i_ehdrp->e_ident[EI_CLASS] = bed->s->elfclass; in prep_headers()
H A Delfxx-mips.c515 (get_elf_backend_data (abfd)->s->elfclass == ELFCLASS64)
H A Delflink.h5586 && elf_elfheader (sub)->e_ident[EI_CLASS] == bed->s->elfclass)
H A Delflink.c7580 && elf_elfheader (sub)->e_ident[EI_CLASS] == bed->s->elfclass) in bfd_elf_final_link()
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Delf-bfd.h437 unsigned char elfclass, ev_current; member
H A Delfxx-sparc.c37 (get_elf_backend_data (abfd)->s->elfclass == ELFCLASS64)
H A Delflink.c8058 && elf_elfheader (sub)->e_ident[EI_CLASS] == bed->s->elfclass in elf_fixup_link_order()
8596 && elf_elfheader (sub)->e_ident[EI_CLASS] == bed->s->elfclass) in bfd_elf_final_link()
H A Delf.c5052 i_ehdrp->e_ident[EI_CLASS] = bed->s->elfclass; in prep_headers()
H A Delfxx-mips.c518 (get_elf_backend_data (abfd)->s->elfclass == ELFCLASS64)