]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
v850 bfd.h tidy
authorAlan Modra <amodra@gmail.com>
Mon, 23 Sep 2019 00:31:31 +0000 (10:01 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 23 Sep 2019 00:57:20 +0000 (10:27 +0930)
bfd/
* bfd-in.h: Move v850 function declarations..
* elf32-v850.h: ..to here, new file.
* elf32-v850.c: Include elf32-v850.h.
* bfd-in2.h: Regenerate.
ld/
* emultempl/v850elf.em: Include elf32-v850.h.

bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/elf32-v850.c
bfd/elf32-v850.h [new file with mode: 0644]
ld/ChangeLog
ld/emultempl/v850elf.em

index d5521fb6dc14a6bdaef6382693a575fad04b8166..61d31aaf97421f2af7ce9552e7ebcac4ae9289de 100644 (file)
@@ -1,3 +1,10 @@
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move v850 function declarations..
+       * elf32-v850.h: ..to here, new file.
+       * elf32-v850.c: Include elf32-v850.h.
+       * bfd-in2.h: Regenerate.
+
 2019-09-23  Alan Modra  <amodra@gmail.com>
 
        * bfd-in.h: Move mips function declaration to..
index c2105e3a94e40a6afffdb9d676c60533825f3f1a..fe5e16812836baad6ac8dd27a9e394543afff602 100644 (file)
@@ -1012,10 +1012,3 @@ extern void bfd_elf32_ia64_after_parse
 
 extern void bfd_elf64_ia64_after_parse
   (int);
-
-/* V850 Note manipulation routines.  */
-extern bfd_boolean v850_elf_create_sections
-  (struct bfd_link_info *);
-
-extern bfd_boolean v850_elf_set_note
-  (bfd *, unsigned int, unsigned int);
index 9960163e27746bf8d178ecf93114fc6b733ce13e..6d92b89e2a55f84023a1d4b577c5b8fb50b001ec 100644 (file)
@@ -1019,13 +1019,6 @@ extern void bfd_elf32_ia64_after_parse
 
 extern void bfd_elf64_ia64_after_parse
   (int);
-
-/* V850 Note manipulation routines.  */
-extern bfd_boolean v850_elf_create_sections
-  (struct bfd_link_info *);
-
-extern bfd_boolean v850_elf_set_note
-  (bfd *, unsigned int, unsigned int);
 /* Extracted from init.c.  */
 unsigned int bfd_init (void);
 
index 21df3c8b9ac21b46a41692b6f685fe45da3334cd..c8a97ed129eaf64bfd73735ddd00affb0214c711 100644 (file)
@@ -29,6 +29,7 @@
 #include "elf-bfd.h"
 #include "elf/v850.h"
 #include "libiberty.h"
+#include "elf32-v850.h"
 
 /* Sign-extend a 17-bit number.  */
 #define SEXT17(x)      ((((x) & 0x1ffff) ^ 0x10000) - 0x10000)
diff --git a/bfd/elf32-v850.h b/bfd/elf32-v850.h
new file mode 100644 (file)
index 0000000..0ed5871
--- /dev/null
@@ -0,0 +1,25 @@
+/* V850 Note manipulation routines.
+   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_boolean v850_elf_create_sections
+  (struct bfd_link_info *);
+
+extern bfd_boolean v850_elf_set_note
+  (bfd *, unsigned int, unsigned int);
index 56fc0a2d926962b628f85e2427c3a3d337435b7e..fa5913e7becffe8302953e46a1445633b183a15c 100644 (file)
@@ -1,3 +1,7 @@
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/v850elf.em: Include elf32-v850.h.
+
 2019-09-23  Alan Modra  <amodra@gmail.com>
 
        * emultempl/cskyelf.em: Include elf32-csky.h.
index ac7051f3b76f9b95c98f107799da2b4c46a9959d..3e3e09d4bbf4d7d2a0ebbffe23a1900ebe599796 100644 (file)
@@ -24,6 +24,7 @@
 #
 fragment <<EOF
 #include "ldctor.h"
+#include "elf32-v850.h"
 
 static bfd_boolean
 is_v850_target (void)