projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX EOF detection in PT_IO-based to_xfer_partial implementation.
[deliverable/binutils-gdb.git]
/
bfd
/
cpu-aarch64.c
diff --git
a/bfd/cpu-aarch64.c
b/bfd/cpu-aarch64.c
index 81620371ffedd8b2af154ebce5b70013ed2c9983..9ec18a0676af8abcad880843d7af8562da3f0202 100644
(file)
--- a/
bfd/cpu-aarch64.c
+++ b/
bfd/cpu-aarch64.c
@@
-38,6
+38,10
@@
compatible (const bfd_arch_info_type * a, const bfd_arch_info_type * b)
if (a->mach == b->mach)
return a;
if (a->mach == b->mach)
return a;
+ /* Don't allow mixing ilp32 with lp64. */
+ if ((a->mach & bfd_mach_aarch64_ilp32) != (b->mach & bfd_mach_aarch64_ilp32))
+ return NULL;
+
/* Otherwise if either a or b is the 'default' machine
then it can be polymorphed into the other. */
if (a->the_default)
/* Otherwise if either a or b is the 'default' machine
then it can be polymorphed into the other. */
if (a->the_default)
@@
-101,9
+105,11
@@
scan (const struct bfd_arch_info *info, const char *string)
"aarch64", PRINT, 4, DEFAULT, compatible, scan, \
bfd_arch_default_fill, NEXT }
"aarch64", PRINT, 4, DEFAULT, compatible, scan, \
bfd_arch_default_fill, NEXT }
-
const bfd_arch_info_type bfd_aarch64_arch
=
- N (
0, "aarch64", TRU
E, NULL);
+
static const bfd_arch_info_type bfd_aarch64_arch_ilp32
=
+ N (
bfd_mach_aarch64_ilp32, "aarch64:ilp32", FALS
E, NULL);
+const bfd_arch_info_type bfd_aarch64_arch =
+ N (0, "aarch64", TRUE, &bfd_aarch64_arch_ilp32);
bfd_boolean
bfd_is_aarch64_special_symbol_name (const char *name, int type)
bfd_boolean
bfd_is_aarch64_special_symbol_name (const char *name, int type)
This page took
0.023784 seconds
and
4
git commands to generate.