MIPS/opcodes: Only examine ELF file structures if SYMTAB_AVAILABLE
authorMaciej W. Rozycki <macro@imgtec.com>
Mon, 19 Dec 2016 11:35:14 +0000 (11:35 +0000)
committerMaciej W. Rozycki <macro@imgtec.com>
Mon, 19 Dec 2016 11:39:20 +0000 (11:39 +0000)
Correct commit 640c0ccdc980 ("some objdump -M options, better reg
dumps"), <https://sourceware.org/ml/binutils/2002-12/msg00706.html>, and
only execute code setting up disassembler options based on ELF file
structures if SYMTAB_AVAILABLE is set.

opcodes/
* mips-dis.c (set_default_mips_dis_options) [SYMTAB_AVAILABLE]:
Only examine ELF file structures here.

opcodes/ChangeLog
opcodes/mips-dis.c

index 2618f90850786b35885431d97a1ad013bfc3c4f0..763701882b33a7002955f717de1f66de9d139ba8 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-19  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * mips-dis.c (set_default_mips_dis_options) [SYMTAB_AVAILABLE]:
+       Only examine ELF file structures here.
+
 2016-12-19  Maciej W. Rozycki  <macro@imgtec.com>
 
        * mips-dis.c (set_default_mips_dis_options) [BFD64]: Only call
index cd9893e70eb4fef616bd594c9360279a5632dd56..8c35759ffda17a7f7540d586cbe3d06068375255 100644 (file)
@@ -839,7 +839,6 @@ set_default_mips_dis_options (struct disassemble_info *info)
       mips_cp1_names = chosen_arch->cp1_names;
       mips_hwr_names = chosen_arch->hwr_names;
     }
-#endif
 
   /* Update settings according to the ELF file header flags.  */
   if (info->flavour == bfd_target_elf_flavour && info->section != NULL)
@@ -866,6 +865,7 @@ set_default_mips_dis_options (struct disassemble_info *info)
       else if (header->e_flags & EF_MIPS_ARCH_ASE_MDMX)
        mips_ase |= ASE_MDMX;
     }
+#endif
 }
 
 static void
This page took 0.033381 seconds and 4 git commands to generate.