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

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

index 57cefe1f787aaf42a2f1df1cf7a51f7d77a30f71..0b5ef9786fcbd92d4de44b5fb792927da7864188 100644 (file)
@@ -1,3 +1,10 @@
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * bfd-in.h: Move cr16 function declaration..
+       * elf32-cr16.h: ..to here, new file.
+       * elf32-cr16.c: Include elf32-cr16.h.
+       * bfd-in2.h: Regenerate.
+
 2019-09-23  Alan Modra  <amodra@gmail.com>
 
        * bfd-in.h (bfd_sunos_get_needed_list),
index a01f80d0239c3b56c0f35c3f6d45f71f6b815aad..61992feacb75d47e95a45fdedc34671b5da5f9b1 100644 (file)
@@ -678,10 +678,6 @@ extern bfd_boolean bfd_bfin_elf32_create_embedded_relocs
   (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *,
    char **);
 
-extern bfd_boolean bfd_cr16_elf32_create_embedded_relocs
-  (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *,
-   char **);
-
 /* mmap hacks */
 
 struct _bfd_window_internal;
index 47df9e37f28a4c125c9fbe7cf45303e7a165c493..257f9307cc90d517078cca28b271ea3e6993bd10 100644 (file)
@@ -685,10 +685,6 @@ extern bfd_boolean bfd_bfin_elf32_create_embedded_relocs
   (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *,
    char **);
 
-extern bfd_boolean bfd_cr16_elf32_create_embedded_relocs
-  (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *,
-   char **);
-
 /* mmap hacks */
 
 struct _bfd_window_internal;
index 72642e532c197bc5fdb2bafed4b5db8a83636ad9..1a6bbbccda24337e9d27693bfa66c5ffcc036641 100644 (file)
@@ -25,6 +25,7 @@
 #include "libiberty.h"
 #include "elf-bfd.h"
 #include "elf/cr16.h"
+#include "elf32-cr16.h"
 
 /* The cr16 linker needs to keep track of the number of relocs that
    it decides to copy in check_relocs for each symbol.  This is so
diff --git a/bfd/elf32-cr16.h b/bfd/elf32-cr16.h
new file mode 100644 (file)
index 0000000..6680c6e
--- /dev/null
@@ -0,0 +1,22 @@
+/* BFD back-end for National Semiconductor's CR16 ELF
+   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 bfd_cr16_elf32_create_embedded_relocs
+  (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *,
+   char **);
index 5a20bf06ccd39f8f319450306dda4f5f69fad4b2..60a1fd6f02587a053862af73ce13d6fda91571c1 100644 (file)
@@ -1,3 +1,7 @@
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/cr16elf.em: Include elf32-cr16.h.
+
 2019-09-23  Alan Modra  <amodra@gmail.com>
 
        * emultempl/aix.em: Include xcofflink.h.
index 9cdd356e3563395d75e822bc8689ec0d4a9923d5..eb068804f92d7cee92ff27f7cbc55a34f1c0adf2 100644 (file)
@@ -26,6 +26,7 @@
 fragment <<EOF
 
 #include "ldctor.h"
+#include "elf32-cr16.h"
 
 static void check_sections (bfd *, asection *, void *);