]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elfxx-mips.c (ABI_64_P): Use backend's data to determine the
authorMaciej W. Rozycki <macro@linux-mips.org>
Mon, 3 Jun 2002 18:42:54 +0000 (18:42 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Mon, 3 Jun 2002 18:42:54 +0000 (18:42 +0000)
ABI.

bfd/ChangeLog
bfd/elfxx-mips.c

index 5f022498f084308206226466be2477b8fc95dadf..1a9b48dde54194e0d1295dea9ad271fe78fadbc7 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
+
+       * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
+       ABI.
+
 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
 
        * elf32-arc.c: Fix formatting.
index 0a92e5d2ef5e408ce1b4e913e3b49a9c1a30fa27..f3464d5391f35ed241cdb07d3d5e56e072bb89c3 100644 (file)
@@ -375,7 +375,7 @@ static bfd *reldyn_sorting_bfd;
 
 /* Nonzero if ABFD is using the 64-bit ABI. */
 #define ABI_64_P(abfd) \
-  ((elf_elfheader (abfd)->e_ident[EI_CLASS] == ELFCLASS64) != 0)
+  ((get_elf_backend_data (abfd)->s->elfclass == ELFCLASS64) != 0)
 
 #define IRIX_COMPAT(abfd) \
   (get_elf_backend_data (abfd)->elf_backend_mips_irix_compat (abfd))