aboutsummaryrefslogtreecommitdiff
path: root/bfd/cpu-aarch64.c
diff options
context:
space:
mode:
authorYury Norov <ynorov@caviumnetworks.com>2016-12-09 21:17:01 +0530
committerYury Norov <ynorov@caviumnetworks.com>2016-12-14 11:07:24 +0530
commita02c3512655cc2c8ad68e4b656959b7d284acc7d (patch)
tree2f81eea61fcd6b56e9403680ca3f1f2cd206f781 /bfd/cpu-aarch64.c
parent6650f7bd18f8161b9f666d3e65a6346e23a9d85f (diff)
downloadgdb-a02c3512655cc2c8ad68e4b656959b7d284acc7d.zip
gdb-a02c3512655cc2c8ad68e4b656959b7d284acc7d.tar.gz
gdb-a02c3512655cc2c8ad68e4b656959b7d284acc7d.tar.bz2
bfd: aarch64: fix word and arrdess size declaration in ilp32 mode
Diffstat (limited to 'bfd/cpu-aarch64.c')
-rw-r--r--bfd/cpu-aarch64.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/cpu-aarch64.c b/bfd/cpu-aarch64.c
index 596d241..1adc670 100644
--- a/bfd/cpu-aarch64.c
+++ b/bfd/cpu-aarch64.c
@@ -100,16 +100,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 }
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)