mips bfd.h tidy
authorAlan Modra <amodra@gmail.com>
Mon, 23 Sep 2019 00:30:21 +0000 (10:00 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 23 Sep 2019 00:57:20 +0000 (10:27 +0930)
bfd/
* bfd-in.h: Move mips function declaration to..
* elfxx-mips.h: ..here.
* bfd-in2.h: Regenerate.
opcodes/
* mips-dis.c: Include elfxx-mips.h.  Move "elf-bfd.h" and
"elf/mips.h" earlier.

bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/elfxx-mips.h
opcodes/ChangeLog
opcodes/mips-dis.c

index 906ff1d2b4d03a493746a42bbfefd0c8d0c90813..d5521fb6dc14a6bdaef6382693a575fad04b8166 100644 (file)
@@ -1,3 +1,9 @@
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move mips function declaration to..
+       * elfxx-mips.h: ..here.
+       * bfd-in2.h: Regenerate.
+
 2019-09-23  Alan Modra  <amodra@gmail.com>
 
        * bfd-in.h: Move csky function declarations to..
index 56a006e9cce2a541e576e8e7e84346f4304c057a..c2105e3a94e40a6afffdb9d676c60533825f3f1a 100644 (file)
@@ -1019,7 +1019,3 @@ extern bfd_boolean v850_elf_create_sections
 
 extern bfd_boolean v850_elf_set_note
   (bfd *, unsigned int, unsigned int);
-
-/* MIPS ABI flags data access.  For the disassembler.  */
-struct elf_internal_abiflags_v0;
-extern struct elf_internal_abiflags_v0 *bfd_mips_elf_get_abiflags (bfd *);
index 1aa2975bd405b75958ee2217bbb8e7e72c783200..9960163e27746bf8d178ecf93114fc6b733ce13e 100644 (file)
@@ -1026,10 +1026,6 @@ extern bfd_boolean v850_elf_create_sections
 
 extern bfd_boolean v850_elf_set_note
   (bfd *, unsigned int, unsigned int);
-
-/* MIPS ABI flags data access.  For the disassembler.  */
-struct elf_internal_abiflags_v0;
-extern struct elf_internal_abiflags_v0 *bfd_mips_elf_get_abiflags (bfd *);
 /* Extracted from init.c.  */
 unsigned int bfd_init (void);
 
index 8e796a99d9d485781a13e1218463c01062af4047..fe0e50ff3982ce4c751e32e3769929818c337b5d 100644 (file)
@@ -176,6 +176,9 @@ extern int _bfd_mips_elf_cant_unwind_opcode (struct bfd_link_info *);
 extern void _bfd_mips_elf_record_xhash_symbol
   (struct elf_link_hash_entry *h, bfd_vma xlat_loc);
 
+/* MIPS ABI flags data access.  For the disassembler.  */
+extern struct elf_internal_abiflags_v0 *bfd_mips_elf_get_abiflags (bfd *);
+
 static inline bfd_boolean
 gprel16_reloc_p (unsigned int r_type)
 {
index 0043d4eb167cb101cb023e1fda94348546a77f0f..91b084ef8aeca942f3247acae546e0be072c34c2 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * mips-dis.c: Include elfxx-mips.h.  Move "elf-bfd.h" and
+       "elf/mips.h" earlier.
+
 2018-09-20  Jan Beulich  <jbeulich@suse.com>
 
        PR gas/25012
index 5bf33d9f8fddaa45cf389990f2d3ab1bc9ef13f2..8418841842161f7eee02b0eac0dd9be59ae819ac 100644 (file)
@@ -24,6 +24,9 @@
 #include "libiberty.h"
 #include "opcode/mips.h"
 #include "opintl.h"
+#include "elf-bfd.h"
+#include "elf/mips.h"
+#include "elfxx-mips.h"
 
 /* FIXME: These are needed to figure out if the code is mips16 or
    not. The low bit of the address is often a good indicator.  No
@@ -32,8 +35,6 @@
 
 #if !defined(EMBEDDED_ENV)
 #define SYMTAB_AVAILABLE 1
-#include "elf-bfd.h"
-#include "elf/mips.h"
 #endif
 
 /* Mips instructions are at maximum this many bytes long.  */
This page took 0.093398 seconds and 4 git commands to generate.