From 564e30ec5709f9375c1f86496e30f2c3dd207d1d Mon Sep 17 00:00:00 2001 From: cgd Date: Wed, 9 Jul 2003 22:53:52 +0000 Subject: [PATCH] 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/ChangeLog | 6 ++++++ opcodes/mips-dis.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index a3ffab9cf5..b1b661997d 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +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. + 2003-07-07 Alan Modra * ppc-opc.c: Remove NULL pointer checks. Formatting. Remove 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; } -- 2.11.0