2003-07-09 Chris Demetriou <cgd@broadcom.com>
authorChris Demetriou <cgd@google.com>
Wed, 9 Jul 2003 22:53:52 +0000 (22:53 +0000)
committerChris Demetriou <cgd@google.com>
Wed, 9 Jul 2003 22:53:52 +0000 (22:53 +0000)
        * mips-dis.c (set_default_mips_dis_options): Get BFD from
        the disassembler_info's section, rather than from the
        disassembler_info's symbols pointer.

opcodes/ChangeLog
opcodes/mips-dis.c

index a3ffab9cf5df92e83264f27420702d9f65379f96..b1b661997da2e06c00a2725dcb56d23dadc6e1ab 100644 (file)
@@ -1,3 +1,9 @@
+2003-07-09  Chris Demetriou  <cgd@broadcom.com>
+
+       * mips-dis.c (set_default_mips_dis_options): Get BFD from
+       the disassembler_info's section, rather than from the
+       disassembler_info's symbols pointer.
+
 2003-07-07  Alan Modra  <amodra@bigpond.net.au>
 
        * ppc-opc.c: Remove NULL pointer checks.  Formatting.  Remove
index 1ed436a0d0aa3d86e9e36773a60801295da7bfd0..20d95ab89d5d8005e3f8343df02396c87b107343 100644 (file)
@@ -495,11 +495,11 @@ set_default_mips_dis_options (info)
   mips_hwr_names = mips_hwr_names_numeric;
 
   /* If an ELF "newabi" binary, use the n32/(n)64 GPR names.  */
-  if (info->flavour == bfd_target_elf_flavour && info->symbols != NULL)
+  if (info->flavour == bfd_target_elf_flavour && info->section != NULL)
     {
       Elf_Internal_Ehdr *header;
 
-      header = elf_elfheader (bfd_asymbol_bfd (*(info->symbols)));
+      header = elf_elfheader (info->section->owner);
       if (is_newabi (header))
        mips_gpr_names = mips_gpr_names_newabi;
     }