h8300 bfd.h tidy
authorAlan Modra <amodra@gmail.com>
Mon, 23 Sep 2019 00:33:04 +0000 (10:03 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 23 Sep 2019 00:57:21 +0000 (10:27 +0930)
* bfd-in.h: Move h8300 function declaration to..
* cpu-h8300.h: ..here, new file.
* cpu-h8300.c: Include cpu-h8300.h.
* elf32-h8300.c: Likewise.
* bfd-in2.h: Regenerate.

bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/cpu-h8300.c
bfd/cpu-h8300.h [new file with mode: 0644]
bfd/elf32-h8300.c

index a08cd7e20f0316c067dfa708184faaaeea0ddba8..9130fd510bb6293e6138db2ed4d6460d9a1d7f97 100644 (file)
@@ -1,3 +1,11 @@
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move h8300 function declaration to..
+       * cpu-h8300.h: ..here, new file.
+       * cpu-h8300.c: Include cpu-h8300.h.
+       * elf32-h8300.c: Likewise.
+       * bfd-in2.h: Regenerate.
+
 2019-09-23  Alan Modra  <amodra@gmail.com>
 
        * bfd-in.h: Move ia64 function declarations..
index 1d0262ffaeca0d007ac746add4264c7a4e04187e..4216808c2ad2117f676a7850b4e7c1c04a0f618a 100644 (file)
@@ -1001,7 +1001,3 @@ extern void bfd_ticoff_set_section_load_page
 
 extern int bfd_ticoff_get_section_load_page
   (struct bfd_section *);
-
-/* H8/300 functions.  */
-extern bfd_vma bfd_h8300_pad_address
-  (bfd *, bfd_vma);
index 88ca55011a2a6d74c2468a976b6fedef7cf7111a..a5c0f5806d3ce9618fa5b6e2d6cafac87d55f5b9 100644 (file)
@@ -1008,10 +1008,6 @@ extern void bfd_ticoff_set_section_load_page
 
 extern int bfd_ticoff_get_section_load_page
   (struct bfd_section *);
-
-/* H8/300 functions.  */
-extern bfd_vma bfd_h8300_pad_address
-  (bfd *, bfd_vma);
 /* Extracted from init.c.  */
 unsigned int bfd_init (void);
 
index 53dd4ec52b53d6ee5b57216b88406774a6871e1b..3dc2ac7c1b66f3aa4b799d5017055ad6e2ce8d61 100644 (file)
@@ -22,6 +22,7 @@
 #include "sysdep.h"
 #include "bfd.h"
 #include "libbfd.h"
+#include "cpu-h8300.h"
 
 static bfd_boolean
 h8300_scan (const struct bfd_arch_info *info, const char *string)
diff --git a/bfd/cpu-h8300.h b/bfd/cpu-h8300.h
new file mode 100644 (file)
index 0000000..9a51089
--- /dev/null
@@ -0,0 +1,22 @@
+/* H8/300 functions.
+   Copyright (C) 2019 Free Software Foundation, Inc.
+
+   This file is part of BFD, the Binary File Descriptor library.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+   MA 02110-1301, USA.  */
+
+extern bfd_vma bfd_h8300_pad_address
+  (bfd *, bfd_vma);
index ba7c8b2062d98280e4d35bb63982b4daf4aa00a2..f0a04e222d4df20583511986346ccfade8976e4e 100644 (file)
@@ -23,6 +23,7 @@
 #include "libbfd.h"
 #include "elf-bfd.h"
 #include "elf/h8.h"
+#include "cpu-h8300.h"
 
 static reloc_howto_type *elf32_h8_reloc_type_lookup
   (bfd *abfd, bfd_reloc_code_real_type code);
This page took 0.030693 seconds and 4 git commands to generate.