summaryrefslogtreecommitdiff
path: root/opcodes/mips-dis.c
diff options
context:
space:
mode:
authorChris Demetriou <cgd@broadcom.com>2003-07-09 22:53:52 +0000
committerChris Demetriou <cgd@broadcom.com>2003-07-09 22:53:52 +0000
commit55fdbe928b22e17dd93cbb73f3cf67578e90ac37 (patch)
tree7f518fdce0fa281be13c8b74834a1ece0e800883 /opcodes/mips-dis.c
parent6e4786501b6e2e9f1e478e5ec34c969f0cc18064 (diff)
downloadbinutils-redhat-55fdbe928b22e17dd93cbb73f3cf67578e90ac37.tar.gz
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.
Diffstat (limited to 'opcodes/mips-dis.c')
-rw-r--r--opcodes/mips-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index 1ed436a0d0..20d95ab89d 100644
--- a/opcodes/mips-dis.c
+++ b/opcodes/mips-dis.c
@@ -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;
}