diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-03-24 12:06:04 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-03-31 18:58:53 -0700 |
commit | 801a7eab11e9050c64a229c6a24d2994df3ca0d4 (patch) | |
tree | 9fb4525a60d7d7c200a96fa9a9b376843a78cd37 /bfd/elf64-x86-64.c | |
parent | 89ab947e7fa451380e7fcbb236c600f4ebb14f0a (diff) | |
download | gdb-801a7eab11e9050c64a229c6a24d2994df3ca0d4.zip gdb-801a7eab11e9050c64a229c6a24d2994df3ca0d4.tar.gz gdb-801a7eab11e9050c64a229c6a24d2994df3ca0d4.tar.bz2 |
x86: Remove bfd_arch_l1om and bfd_arch_k1om
Remove bfd_arch_l1om and bfd_arch_k1om since L1OM/K1OM support has been
removed from gas, ld and opcodes.
bfd/
* Makefile.am (ALL_MACHINES): Remove cpu-l1om.lo and cpu-k1om.lo.
(ALL_MACHINES_CFILES): Remove cpu-l1om.c and cpu-k1om.c.
* archures.c (bfd_mach_l1om): Removed.
(bfd_mach_l1om_intel_syntax): Likewise.
(bfd_mach_k1om): Likewise.
(bfd_mach_k1om_intel_syntax): Likewise.
(bfd_k1om_arch): Likewise.
(bfd_l1om_arch): Likewise.
(bfd_archures_list): Remove bfd_k1om_arch and bfd_l1om_arch
references.
* config.bfd (targ_selvecs): Remove l1om_elf64_vec.
l1om_elf64_fbsd_vec, k1om_elf64_vec and k1om_elf64_fbsd_vec.
(targ_archs): Remove bfd_l1om_arch and bfd_k1om_arch.
* configure.ac (k1om_elf64_vec): Removed.
(k1om_elf64_fbsd_vec): Likewise.
(l1om_elf64_vec): Likewise.
(l1om_elf64_fbsd_vec): Likewise.
* cpu-k1om.c: Removed.
* cpu-l1om.c: Likewise.
* elf64-x86-64.c (elf64_l1om_elf_object_p): Removed.
(elf64_k1om_elf_object_p): Likewise.
(l1om_elf64_vec): Removed.
(l1om_elf64_fbsd_vec): Likewise.
(k1om_elf64_vec): Likewise.
(k1om_elf64_fbsd_vec): Likewise.
(ELF_TARGET_OS): Undefine.
* targets.c (_bfd_target_vector): Remove k1om_elf64_vec,
k1om_elf64_fbsd_vec, l1om_elf64_vec and l1om_elf64_fbsd_vec.
* Makefile.in: Regenerate.
* bfd-in2.h: Likewise.
* configure: Likewise.
opcodes/
* configure.ac: Remove bfd_arch_l1om/bfd_arch_k1om references.
* disassemble.c (disassembler): Likewise.
* configure: Regenerate.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r-- | bfd/elf64-x86-64.c | 94 |
1 files changed, 1 insertions, 93 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index b5718e7..6cebc7c 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -5412,99 +5412,6 @@ elf64_x86_64_copy_solaris_special_section_fields (const bfd *ibfd ATTRIBUTE_UNUS #undef elf_backend_strtab_flags #undef elf_backend_copy_special_section_fields -/* Intel L1OM support. */ - -static bool -elf64_l1om_elf_object_p (bfd *abfd) -{ - /* Set the right machine number for an L1OM elf64 file. */ - bfd_default_set_arch_mach (abfd, bfd_arch_l1om, bfd_mach_l1om); - return true; -} - -#undef TARGET_LITTLE_SYM -#define TARGET_LITTLE_SYM l1om_elf64_vec -#undef TARGET_LITTLE_NAME -#define TARGET_LITTLE_NAME "elf64-l1om" -#undef ELF_ARCH -#define ELF_ARCH bfd_arch_l1om - -#undef ELF_MACHINE_CODE -#define ELF_MACHINE_CODE EM_L1OM - -#undef ELF_OSABI - -#undef elf64_bed -#define elf64_bed elf64_l1om_bed - -#undef elf_backend_object_p -#define elf_backend_object_p elf64_l1om_elf_object_p - -/* Restore defaults. */ -#undef ELF_TARGET_OS - -#include "elf64-target.h" - -/* FreeBSD L1OM support. */ - -#undef TARGET_LITTLE_SYM -#define TARGET_LITTLE_SYM l1om_elf64_fbsd_vec -#undef TARGET_LITTLE_NAME -#define TARGET_LITTLE_NAME "elf64-l1om-freebsd" - -#undef ELF_OSABI -#define ELF_OSABI ELFOSABI_FREEBSD - -#undef elf64_bed -#define elf64_bed elf64_l1om_fbsd_bed - -#include "elf64-target.h" - -/* Intel K1OM support. */ - -static bool -elf64_k1om_elf_object_p (bfd *abfd) -{ - /* Set the right machine number for an K1OM elf64 file. */ - bfd_default_set_arch_mach (abfd, bfd_arch_k1om, bfd_mach_k1om); - return true; -} - -#undef TARGET_LITTLE_SYM -#define TARGET_LITTLE_SYM k1om_elf64_vec -#undef TARGET_LITTLE_NAME -#define TARGET_LITTLE_NAME "elf64-k1om" -#undef ELF_ARCH -#define ELF_ARCH bfd_arch_k1om - -#undef ELF_MACHINE_CODE -#define ELF_MACHINE_CODE EM_K1OM - -#undef ELF_OSABI - -#undef elf64_bed -#define elf64_bed elf64_k1om_bed - -#undef elf_backend_object_p -#define elf_backend_object_p elf64_k1om_elf_object_p - -#include "elf64-target.h" - -/* FreeBSD K1OM support. */ - -#undef TARGET_LITTLE_SYM -#define TARGET_LITTLE_SYM k1om_elf64_fbsd_vec -#undef TARGET_LITTLE_NAME -#define TARGET_LITTLE_NAME "elf64-k1om-freebsd" - -#undef ELF_OSABI -#define ELF_OSABI ELFOSABI_FREEBSD - -#undef elf64_bed -#define elf64_bed elf64_k1om_fbsd_bed - -#include "elf64-target.h" - /* 32bit x86-64 support. */ #undef TARGET_LITTLE_SYM @@ -5520,6 +5427,7 @@ elf64_k1om_elf_object_p (bfd *abfd) #undef ELF_MACHINE_CODE #define ELF_MACHINE_CODE EM_X86_64 +#undef ELF_TARGET_OS #undef ELF_OSABI #define bfd_elf32_bfd_reloc_type_lookup \ |