From fec0654638b5506964489a9992fd8a6e2bc724d5 Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Wed, 9 Jul 2003 22:53:52 +0000 Subject: 2003-07-09 Chris Demetriou * 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/mips-dis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opcodes/mips-dis.c') diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c index 1ed436a..20d95ab 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; } -- cgit v1.1