summaryrefslogtreecommitdiff
path: root/bfd/cpu-aarch64.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/cpu-aarch64.c')
-rw-r--r--bfd/cpu-aarch64.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/bfd/cpu-aarch64.c b/bfd/cpu-aarch64.c
index 44cee6c98a..4f9d473a2d 100644
--- a/bfd/cpu-aarch64.c
+++ b/bfd/cpu-aarch64.c
@@ -25,7 +25,8 @@
/* This routine is provided two arch_infos and works out which Aarch64
machine which would be compatible with both and returns a pointer
- to its info structure. */
+ to its info structure. ABI (ilp32 vs. lp64) and endianness compatibility
+ are checked in elfNN_aarch64_merge_private_bfd_data. */
static const bfd_arch_info_type *
compatible (const bfd_arch_info_type * a, const bfd_arch_info_type * b)
@@ -38,10 +39,6 @@ compatible (const bfd_arch_info_type * a, const bfd_arch_info_type * b)
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)