From: Maciej W. Rozycki Date: Mon, 3 Jun 2002 18:42:54 +0000 (+0000) Subject: * elfxx-mips.c (ABI_64_P): Use backend's data to determine the X-Git-Tag: binutils-2_13-branchpoint~577 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf6fb9ce2fde099451fa0b0c59318b24784ada0b;p=platform%2Fupstream%2Fbinutils.git * elfxx-mips.c (ABI_64_P): Use backend's data to determine the ABI. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5f02249..1a9b48d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-06-03 Maciej W. Rozycki + + * elfxx-mips.c (ABI_64_P): Use backend's data to determine the + ABI. + 2002-06-02 Kazu Hirata * elf32-arc.c: Fix formatting. diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 0a92e5d..f3464d5 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -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))