This is a follow up to a post from some time ago to enable aarch64 ILP32 support in gdb. https://sourceware.org/ml/binutils/2016-09/msg00004.html Andrew Pinksi submitted these patches and I have updated them, addressed the comments that were made at the time, and retested them.  Andrew broke them down into 3 patches I am submitting it as two patches, this first one is the changes to bfd.  This patch removes the ilp32/lp64 checking that is done in compatible and moves it to elfNN_aarch64_merge_private_bfd_data.  Doing it in compatible is too early for gdb.  The patch also adds an endianness check to elfNN_aarch64_merge_private_bfd_data.  The second patch will contain the gdb changes. Steve Ellcey sellcey@cavium.com 2017-01-24  Andrew Pinski       Steve Ellcey   * cpu-aarch64.c (compatible): Don't reject different ILP32/LP64 ABI's here. * elfnn-aarch64.c (elfNN_aarch64_merge_private_bfd_data): Add an error message on why endianess is rejected. Reject different ILP32/LP64 ABI settings.