X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fcpu-aarch64.c;h=b3df3faad9e2e4b9bbc05dfd3ec7104b2ac20d35;hb=78f2c40a12179d26d3065c09f054b7e751b2732f;hp=596d24190b589d8380b2ee3ff5855cbf71757f67;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/cpu-aarch64.c b/bfd/cpu-aarch64.c index 596d24190b..b3df3faad9 100644 --- a/bfd/cpu-aarch64.c +++ b/bfd/cpu-aarch64.c @@ -1,5 +1,5 @@ /* BFD support for AArch64. - Copyright (C) 2009-2016 Free Software Foundation, Inc. + Copyright (C) 2009-2020 Free Software Foundation, Inc. Contributed by ARM Ltd. This file is part of BFD, the Binary File Descriptor library. @@ -22,6 +22,7 @@ #include "bfd.h" #include "libbfd.h" #include "libiberty.h" +#include "cpu-aarch64.h" /* This routine is provided two arch_infos and works out which Aarch64 machine which would be compatible with both and returns a pointer @@ -68,10 +69,11 @@ static struct } processors[] = { - /* These two are example CPUs supported in GCC, once we have real - CPUs they will be removed. */ - { bfd_mach_aarch64, "example-1" }, - { bfd_mach_aarch64, "example-2" } + { bfd_mach_aarch64, "cortex-a34" }, + { bfd_mach_aarch64, "cortex-a65" }, + { bfd_mach_aarch64, "cortex-a65ae" }, + { bfd_mach_aarch64, "cortex-a76ae" }, + { bfd_mach_aarch64, "cortex-a77" } }; static bfd_boolean @@ -100,16 +102,16 @@ scan (const struct bfd_arch_info *info, const char *string) return FALSE; } -#define N(NUMBER, PRINT, DEFAULT, NEXT) \ - { 64, 64, 8, bfd_arch_aarch64, NUMBER, \ +#define N(NUMBER, PRINT, WORDSIZE, DEFAULT, NEXT) \ + { WORDSIZE, WORDSIZE, 8, bfd_arch_aarch64, NUMBER, \ "aarch64", PRINT, 4, DEFAULT, compatible, scan, \ - bfd_arch_default_fill, NEXT } + bfd_arch_default_fill, NEXT, 0 } static const bfd_arch_info_type bfd_aarch64_arch_ilp32 = - N (bfd_mach_aarch64_ilp32, "aarch64:ilp32", FALSE, NULL); + N (bfd_mach_aarch64_ilp32, "aarch64:ilp32", 32, FALSE, NULL); const bfd_arch_info_type bfd_aarch64_arch = - N (0, "aarch64", TRUE, &bfd_aarch64_arch_ilp32); + N (0, "aarch64", 64, TRUE, &bfd_aarch64_arch_ilp32); bfd_boolean bfd_is_aarch64_special_symbol_name (const char *name, int type)