Home
last modified time | relevance | path

Searched refs:e_ident (Results 1 – 25 of 33) sorted by relevance

12

/toolchain/binutils/binutils-2.25/gold/
Dbinary.cc270 unsigned char e_ident[elfcpp::EI_NIDENT]; in write_file_header() local
271 memset(e_ident, 0, elfcpp::EI_NIDENT); in write_file_header()
272 e_ident[elfcpp::EI_MAG0] = elfcpp::ELFMAG0; in write_file_header()
273 e_ident[elfcpp::EI_MAG1] = elfcpp::ELFMAG1; in write_file_header()
274 e_ident[elfcpp::EI_MAG2] = elfcpp::ELFMAG2; in write_file_header()
275 e_ident[elfcpp::EI_MAG3] = elfcpp::ELFMAG3; in write_file_header()
277 e_ident[elfcpp::EI_CLASS] = elfcpp::ELFCLASS32; in write_file_header()
279 e_ident[elfcpp::EI_CLASS] = elfcpp::ELFCLASS64; in write_file_header()
282 e_ident[elfcpp::EI_DATA] = (big_endian in write_file_header()
285 e_ident[elfcpp::EI_VERSION] = elfcpp::EV_CURRENT; in write_file_header()
[all …]
Dtarget.cc230 unsigned char e_ident[elfcpp::EI_NIDENT]; in do_adjust_elf_header() local
231 memcpy(e_ident, ehdr.get_e_ident(), elfcpp::EI_NIDENT); in do_adjust_elf_header()
233 e_ident[elfcpp::EI_OSABI] = osabi; in do_adjust_elf_header()
236 oehdr.put_e_ident(e_ident); in do_adjust_elf_header()
Ddwp.cc2106 unsigned char e_ident[elfcpp::EI_NIDENT]; in sized_write_ehdr() local
2107 memset(e_ident, 0, elfcpp::EI_NIDENT); in sized_write_ehdr()
2108 e_ident[elfcpp::EI_MAG0] = elfcpp::ELFMAG0; in sized_write_ehdr()
2109 e_ident[elfcpp::EI_MAG1] = elfcpp::ELFMAG1; in sized_write_ehdr()
2110 e_ident[elfcpp::EI_MAG2] = elfcpp::ELFMAG2; in sized_write_ehdr()
2111 e_ident[elfcpp::EI_MAG3] = elfcpp::ELFMAG3; in sized_write_ehdr()
2113 e_ident[elfcpp::EI_CLASS] = elfcpp::ELFCLASS32; in sized_write_ehdr()
2115 e_ident[elfcpp::EI_CLASS] = elfcpp::ELFCLASS64; in sized_write_ehdr()
2118 e_ident[elfcpp::EI_DATA] = (big_endian in sized_write_ehdr()
2121 e_ident[elfcpp::EI_VERSION] = elfcpp::EV_CURRENT; in sized_write_ehdr()
[all …]
Doutput.cc505 unsigned char e_ident[elfcpp::EI_NIDENT]; in do_sized_write() local
506 memset(e_ident, 0, elfcpp::EI_NIDENT); in do_sized_write()
507 e_ident[elfcpp::EI_MAG0] = elfcpp::ELFMAG0; in do_sized_write()
508 e_ident[elfcpp::EI_MAG1] = elfcpp::ELFMAG1; in do_sized_write()
509 e_ident[elfcpp::EI_MAG2] = elfcpp::ELFMAG2; in do_sized_write()
510 e_ident[elfcpp::EI_MAG3] = elfcpp::ELFMAG3; in do_sized_write()
512 e_ident[elfcpp::EI_CLASS] = elfcpp::ELFCLASS32; in do_sized_write()
514 e_ident[elfcpp::EI_CLASS] = elfcpp::ELFCLASS64; in do_sized_write()
517 e_ident[elfcpp::EI_DATA] = (big_endian in do_sized_write()
520 e_ident[elfcpp::EI_VERSION] = elfcpp::EV_CURRENT; in do_sized_write()
[all …]
Darm.cc10592 unsigned char e_ident[elfcpp::EI_NIDENT]; in do_adjust_elf_header() local
10593 memcpy(e_ident, ehdr.get_e_ident(), elfcpp::EI_NIDENT); in do_adjust_elf_header()
10597 e_ident[elfcpp::EI_OSABI] = elfcpp::ELFOSABI_ARM; in do_adjust_elf_header()
10599 e_ident[elfcpp::EI_OSABI] = 0; in do_adjust_elf_header()
10600 e_ident[elfcpp::EI_ABIVERSION] = 0; in do_adjust_elf_header()
10620 oehdr.put_e_ident(e_ident); in do_adjust_elf_header()
Dmips.cc7888 unsigned char e_ident[elfcpp::EI_NIDENT]; in do_adjust_elf_header() local
7889 memcpy(e_ident, ehdr.get_e_ident(), elfcpp::EI_NIDENT); in do_adjust_elf_header()
7891 e_ident[elfcpp::EI_CLASS] = this->ei_class_; in do_adjust_elf_header()
7894 oehdr.put_e_ident(e_ident); in do_adjust_elf_header()
/toolchain/binutils/binutils-2.25/binutils/
Delfedit.c64 if (elf_header.e_ident[EI_MAG0] != ELFMAG0 in update_elf_header()
65 || elf_header.e_ident[EI_MAG1] != ELFMAG1 in update_elf_header()
66 || elf_header.e_ident[EI_MAG2] != ELFMAG2 in update_elf_header()
67 || elf_header.e_ident[EI_MAG3] != ELFMAG3) in update_elf_header()
75 if (elf_header.e_ident[EI_VERSION] != EV_CURRENT) in update_elf_header()
79 file_name, elf_header.e_ident[EI_VERSION], in update_elf_header()
88 class = elf_header.e_ident[EI_CLASS]; in update_elf_header()
121 osabi = elf_header.e_ident[EI_OSABI]; in update_elf_header()
145 ehdr32.e_ident[EI_OSABI] = output_elf_osabi; in update_elf_header()
154 ehdr64.e_ident[EI_OSABI] = output_elf_osabi; in update_elf_header()
[all …]
Dreadelf.c652 && elf_header.e_ident[EI_OSABI] == ELFOSABI_OPENVMS; in is_ia64_vms()
845 && elf_header.e_ident[EI_DATA] != ELFDATA2MSB) in slurp_rela_relocs()
941 && elf_header.e_ident[EI_DATA] != ELFDATA2MSB) in slurp_rel_relocs()
1004 || (elf_header.e_ident[EI_OSABI] == ELFOSABI_NONE)); in uses_msp430x_relocs()
1516 && elf_header.e_ident[EI_OSABI] == ELFOSABI_HPUX in dump_relocations()
3071 if (elf_header.e_ident[EI_OSABI] == ELFOSABI_OPENVMS) in get_machine_flags()
4092 if ( elf_header.e_ident[EI_MAG0] != ELFMAG0 in process_file_header()
4093 || elf_header.e_ident[EI_MAG1] != ELFMAG1 in process_file_header()
4094 || elf_header.e_ident[EI_MAG2] != ELFMAG2 in process_file_header()
4095 || elf_header.e_ident[EI_MAG3] != ELFMAG3) in process_file_header()
[all …]
/toolchain/binutils/binutils-2.25/include/elf/
Dexternal.h53 unsigned char e_ident[16]; /* ELF "magic number" */ member
70 unsigned char e_ident[16]; /* ELF "magic number" */ member
Dinternal.h68 unsigned char e_ident[EI_NIDENT]; /* ELF "magic number" */ member
/toolchain/binutils/binutils-2.25/bfd/
Delfcode.h240 memcpy (dst->e_ident, src->e_ident, EI_NIDENT); in elf_swap_ehdr_in()
269 memcpy (dst->e_ident, src->e_ident, EI_NIDENT); in elf_swap_ehdr_out()
473 return ((x_ehdrp->e_ident[EI_MAG0] == ELFMAG0) in elf_file_p()
474 && (x_ehdrp->e_ident[EI_MAG1] == ELFMAG1) in elf_file_p()
475 && (x_ehdrp->e_ident[EI_MAG2] == ELFMAG2) in elf_file_p()
476 && (x_ehdrp->e_ident[EI_MAG3] == ELFMAG3)); in elf_file_p()
518 || x_ehdr.e_ident[EI_VERSION] != EV_CURRENT in elf_object_p()
519 || x_ehdr.e_ident[EI_CLASS] != ELFCLASS) in elf_object_p()
523 switch (x_ehdr.e_ident[EI_DATA]) in elf_object_p()
602 && i_ehdrp->e_ident[EI_OSABI] != ebd->elf_osabi in elf_object_p()
[all …]
Delfcore.h104 if (x_ehdr.e_ident[EI_CLASS] != ELFCLASS) in elf_core_file_p()
108 switch (x_ehdr.e_ident[EI_DATA]) in elf_core_file_p()
Delf64-hppa.c330 if (i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_GNU in elf64_hppa_object_p()
331 && i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_NONE) /* aka SYSV */ in elf64_hppa_object_p()
338 if (i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_HPUX in elf64_hppa_object_p()
339 && i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_NONE) /* aka SYSV */ in elf64_hppa_object_p()
351 if (i_ehdrp->e_ident[EI_CLASS] == ELFCLASS64) in elf64_hppa_object_p()
1134 i_ehdrp->e_ident[EI_OSABI] = get_elf_backend_data (abfd)->elf_osabi; in elf64_hppa_post_process_headers()
1135 i_ehdrp->e_ident[EI_ABIVERSION] = 1; in elf64_hppa_post_process_headers()
Delf-eh-frame.c1037 if (elf_elfheader (abfd)->e_ident[EI_CLASS] == ELFCLASS64) in find_merged_cie()
1848 if (elf_elfheader (abfd)->e_ident[EI_CLASS] == ELFCLASS64 in _bfd_elf_write_section_eh_frame_hdr()
1857 if (elf_elfheader (abfd)->e_ident[EI_CLASS] == ELFCLASS64 in _bfd_elf_write_section_eh_frame_hdr()
1893 return elf_elfheader (abfd)->e_ident[EI_CLASS] == ELFCLASS64 ? 8 : 4; in _bfd_elf_eh_frame_address_size()
Delf32-m68hc1x.c1356 elf_elfheader (obfd)->e_ident[EI_CLASS] in _bfd_m68hc11_elf_merge_private_bfd_data()
1357 = elf_elfheader (ibfd)->e_ident[EI_CLASS]; in _bfd_m68hc11_elf_merge_private_bfd_data()
Delf.c1155 elf_elfheader (obfd)->e_ident[EI_OSABI] = in _bfd_elf_copy_private_bfd_data()
1156 elf_elfheader (ibfd)->e_ident[EI_OSABI]; in _bfd_elf_copy_private_bfd_data()
5328 i_ehdrp->e_ident[EI_MAG0] = ELFMAG0; in prep_headers()
5329 i_ehdrp->e_ident[EI_MAG1] = ELFMAG1; in prep_headers()
5330 i_ehdrp->e_ident[EI_MAG2] = ELFMAG2; in prep_headers()
5331 i_ehdrp->e_ident[EI_MAG3] = ELFMAG3; in prep_headers()
5333 i_ehdrp->e_ident[EI_CLASS] = bed->s->elfclass; in prep_headers()
5334 i_ehdrp->e_ident[EI_DATA] = in prep_headers()
5336 i_ehdrp->e_ident[EI_VERSION] = bed->s->ev_current; in prep_headers()
10127 i_ehdrp->e_ident[EI_OSABI] = get_elf_backend_data (abfd)->elf_osabi; in _bfd_elf_post_process_headers()
[all …]
Delfxx-mips.c6859 if (elf_elfheader (abfd)->e_ident[EI_CLASS] == ELFCLASS64) in _bfd_mips_elf_eh_frame_address_size()
15166 elf_elfheader (obfd)->e_ident[EI_CLASS] in _bfd_mips_elf_merge_private_bfd_data()
15167 = elf_elfheader (ibfd)->e_ident[EI_CLASS]; in _bfd_mips_elf_merge_private_bfd_data()
15303 || (elf_elfheader (ibfd)->e_ident[EI_CLASS] in _bfd_mips_elf_merge_private_bfd_data()
15304 != elf_elfheader (obfd)->e_ident[EI_CLASS])) in _bfd_mips_elf_merge_private_bfd_data()
15308 || (elf_elfheader (ibfd)->e_ident[EI_CLASS] in _bfd_mips_elf_merge_private_bfd_data()
15309 != elf_elfheader (obfd)->e_ident[EI_CLASS])) in _bfd_mips_elf_merge_private_bfd_data()
16133 i_ehdrp->e_ident[EI_ABIVERSION] = 1; in _bfd_mips_post_process_headers()
16140 i_ehdrp->e_ident[EI_ABIVERSION] = 3; in _bfd_mips_post_process_headers()
Delfnn-ia64.c4950 i_ehdrp->e_ident[EI_OSABI] = get_elf_backend_data (abfd)->elf_osabi; in elfNN_hpux_post_process_headers()
4951 i_ehdrp->e_ident[EI_ABIVERSION] = 1; in elfNN_hpux_post_process_headers()
Delf32-i386.c5000 if (elf_elfheader (abfd)->e_ident[EI_OSABI] != ELFOSABI_GNU) in elf_i386_plt_sym_val()
5129 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8); in elf_i386_fbsd_post_process_headers()
Delf64-ia64-vms.c4595 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_OPENVMS; in elf64_vms_post_process_headers()
4596 i_ehdrp->e_ident[EI_ABIVERSION] = 2; in elf64_vms_post_process_headers()
Delf64-alpha.c5584 i_ehdrp->e_ident[EI_OSABI] = get_elf_backend_data (abfd)->elf_osabi; in elf64_alpha_fbsd_post_process_headers()
5587 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8); in elf64_alpha_fbsd_post_process_headers()
/toolchain/binutils/binutils-2.25/elfcpp/
Delfcpp_internal.h49 unsigned char e_ident[EI_NIDENT]; member
Delfcpp.h1032 { return this->p_->e_ident; }
1102 { memcpy(this->p_->e_ident, v, EI_NIDENT); }
/toolchain/binutils/binutils-2.25/libiberty/
Dsimple-object-elf.c50 unsigned char e_ident[16]; /* ELF "magic number" */ member
69 unsigned char e_ident[16]; /* ELF "magic number" */ member
/toolchain/binutils/binutils-2.25/opcodes/
Dmips-dis.c767 if (header->e_ident[EI_CLASS] == ELFCLASS64) in is_newabi()

12