Home
last modified time | relevance | path

Searched refs:i_ehdrp (Results 1 – 15 of 15) sorted by relevance

/toolchain/binutils/binutils-2.25/bfd/
Delfcore.h82 Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form. */ in elf_core_file_p() local
127 i_ehdrp = elf_elfheader (abfd); in elf_core_file_p()
128 elf_swap_ehdr_in (abfd, &x_ehdr, i_ehdrp); in elf_core_file_p()
131 elf_debug_file (i_ehdrp); in elf_core_file_p()
139 if (ebd->elf_machine_code != i_ehdrp->e_machine in elf_core_file_p()
141 || i_ehdrp->e_machine != ebd->elf_machine_alt1) in elf_core_file_p()
143 || i_ehdrp->e_machine != ebd->elf_machine_alt2)) in elf_core_file_p()
162 if (back->elf_machine_code == i_ehdrp->e_machine in elf_core_file_p()
164 && i_ehdrp->e_machine == back->elf_machine_alt1) in elf_core_file_p()
166 && i_ehdrp->e_machine == back->elf_machine_alt2)) in elf_core_file_p()
[all …]
Delfcode.h491 Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form */ in elf_object_p() local
547 i_ehdrp = elf_elfheader (abfd); in elf_object_p()
548 elf_swap_ehdr_in (abfd, &x_ehdr, i_ehdrp); in elf_object_p()
550 elf_debug_file (i_ehdrp); in elf_object_p()
554 if (i_ehdrp->e_type == ET_CORE) in elf_object_p()
559 if (i_ehdrp->e_shoff == 0 && i_ehdrp->e_type == ET_REL) in elf_object_p()
565 if (i_ehdrp->e_shentsize != sizeof (x_shdr) && i_ehdrp->e_shnum != 0) in elf_object_p()
569 if (i_ehdrp->e_shoff == 0 && i_ehdrp->e_shnum != 0) in elf_object_p()
578 if (ebd->elf_machine_code != i_ehdrp->e_machine in elf_object_p()
580 || i_ehdrp->e_machine != ebd->elf_machine_alt1) in elf_object_p()
[all …]
Delf.c5226 Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd); in assign_file_positions_except_relocs() local
5239 off = i_ehdrp->e_ehsize; in assign_file_positions_except_relocs()
5300 i_ehdrp->e_type = ET_EXEC; in assign_file_positions_except_relocs()
5316 Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form. */ in prep_headers() local
5320 i_ehdrp = elf_elfheader (abfd); in prep_headers()
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()
[all …]
Delf64-hppa.c322 Elf_Internal_Ehdr * i_ehdrp; in elf64_hppa_object_p() local
325 i_ehdrp = elf_elfheader (abfd); in elf64_hppa_object_p()
330 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()
343 flags = i_ehdrp->e_flags; in elf64_hppa_object_p()
351 if (i_ehdrp->e_ident[EI_CLASS] == ELFCLASS64) in elf64_hppa_object_p()
1130 Elf_Internal_Ehdr * i_ehdrp; in elf64_hppa_post_process_headers() local
1132 i_ehdrp = elf_elfheader (abfd); in elf64_hppa_post_process_headers()
[all …]
Delf32-m68hc1x.c1496 Elf_Internal_Ehdr * i_ehdrp; in elf32_m68hc11_post_process_headers() local
1498 i_ehdrp = elf_elfheader (abfd); in elf32_m68hc11_post_process_headers()
1499 i_ehdrp->e_flags |= E_M68HC12_BANKS; in elf32_m68hc11_post_process_headers()
Delf64-ia64-vms.c4488 Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd); in elf64_vms_object_p() local
4502 for (i = 0; i < i_ehdrp->e_phnum; i++, i_phdr++) in elf64_vms_object_p()
4593 Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd); in elf64_vms_post_process_headers() local
4595 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()
Delf32-metag.c3258 Elf_Internal_Ehdr * i_ehdrp; /* ELF file header, internal form. */ in elf_metag_post_process_headers() local
3261 i_ehdrp = elf_elfheader (abfd); in elf_metag_post_process_headers()
3262 i_ehdrp->e_ident[EI_ABIVERSION] = METAG_ELF_ABI_VERSION; in elf_metag_post_process_headers()
Delf32-arm.c14698 Elf_Internal_Ehdr * i_ehdrp; /* ELF file header, internal form. */ in elf32_arm_post_process_headers() local
14701 i_ehdrp = elf_elfheader (abfd); in elf32_arm_post_process_headers()
14703 if (EF_ARM_EABI_VERSION (i_ehdrp->e_flags) == EF_ARM_EABI_UNKNOWN) in elf32_arm_post_process_headers()
14704 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_ARM; in elf32_arm_post_process_headers()
14707 i_ehdrp->e_ident[EI_ABIVERSION] = ARM_ELF_ABI_VERSION; in elf32_arm_post_process_headers()
14713 i_ehdrp->e_flags |= EF_ARM_BE8; in elf32_arm_post_process_headers()
14716 if (EF_ARM_EABI_VERSION (i_ehdrp->e_flags) == EF_ARM_EABI_VER5 in elf32_arm_post_process_headers()
14717 && ((i_ehdrp->e_type == ET_DYN) || (i_ehdrp->e_type == ET_EXEC))) in elf32_arm_post_process_headers()
14721 i_ehdrp->e_flags |= EF_ARM_ABI_FLOAT_HARD; in elf32_arm_post_process_headers()
14723 i_ehdrp->e_flags |= EF_ARM_ABI_FLOAT_SOFT; in elf32_arm_post_process_headers()
Delf64-alpha.c5579 Elf_Internal_Ehdr * i_ehdrp; /* ELF file header, internal form. */ in elf64_alpha_fbsd_post_process_headers() local
5581 i_ehdrp = elf_elfheader (abfd); in elf64_alpha_fbsd_post_process_headers()
5584 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()
Delfnn-ia64.c4948 Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd); in elfNN_hpux_post_process_headers() local
4950 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()
Delfnn-aarch64.c6456 Elf_Internal_Ehdr *i_ehdrp; /* ELF file header, internal form. */ in elfNN_aarch64_post_process_headers() local
6458 i_ehdrp = elf_elfheader (abfd); in elfNN_aarch64_post_process_headers()
6459 i_ehdrp->e_ident[EI_ABIVERSION] = AARCH64_ELF_ABI_VERSION; in elfNN_aarch64_post_process_headers()
Delf32-i386.c5128 Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd); in elf_i386_fbsd_post_process_headers() local
5129 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8); in elf_i386_fbsd_post_process_headers()
Delf32-spu.c5170 Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd); in spu_elf_post_process_headers() local
5172 i_ehdrp->e_type = ET_DYN; in spu_elf_post_process_headers()
Delfxx-mips.c16124 Elf_Internal_Ehdr *i_ehdrp; in _bfd_mips_post_process_headers() local
16126 i_ehdrp = elf_elfheader (abfd); in _bfd_mips_post_process_headers()
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()
DChangeLog-20102475 (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.