This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] dlx: move prototype of dlx_set_skip_hi16 to elf/dlx.h


From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>

Hi,

built and tested without failures dlx-elf, ok?
Trev

include/ChangeLog:

2016-06-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

	* elf/dlx.h (dlx_set_skip_hi16): New prototype.

bfd/ChangeLog:

2016-06-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

	* elf32-dlx.c (dlx_set_skip_hi16): Remove prototype.

gas/ChangeLog:

2016-06-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

	* config/tc-dlx.c: Include elf/dlx.h.
	* config/tc-dlx.h (dlx_set_skip_hi16): Remove prototype.
---
 bfd/elf32-dlx.c     | 2 --
 gas/config/tc-dlx.c | 1 +
 gas/config/tc-dlx.h | 1 -
 include/elf/dlx.h   | 2 ++
 4 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bfd/elf32-dlx.c b/bfd/elf32-dlx.c
index b5c7d6e..5dff10d 100644
--- a/bfd/elf32-dlx.c
+++ b/bfd/elf32-dlx.c
@@ -40,8 +40,6 @@
 
 static int skip_dlx_elf_hi16_reloc = 0;
 
-extern int set_dlx_skip_hi16_flag (int);
-
 int
 set_dlx_skip_hi16_flag (int flag)
 {
diff --git a/gas/config/tc-dlx.c b/gas/config/tc-dlx.c
index 03e8de9..236eef2 100644
--- a/gas/config/tc-dlx.c
+++ b/gas/config/tc-dlx.c
@@ -24,6 +24,7 @@
 #include "safe-ctype.h"
 #include "tc-dlx.h"
 #include "opcode/dlx.h"
+#include "elf/dlx.h"
 
 /* Make it easier to clone this machine desc into another one.  */
 #define	machine_opcode      dlx_opcode
diff --git a/gas/config/tc-dlx.h b/gas/config/tc-dlx.h
index aa1b157..8da1c11 100644
--- a/gas/config/tc-dlx.h
+++ b/gas/config/tc-dlx.h
@@ -32,7 +32,6 @@
 #define LEX_DOLLAR 1
 
 extern void dlx_pop_insert         (void);
-extern int set_dlx_skip_hi16_flag  (int);
 extern int dlx_unrecognized_line   (int);
 extern bfd_boolean md_dlx_fix_adjustable  (struct fix *);
 
diff --git a/include/elf/dlx.h b/include/elf/dlx.h
index 8165951..5da8e6a 100644
--- a/include/elf/dlx.h
+++ b/include/elf/dlx.h
@@ -54,6 +54,8 @@ START_RELOC_NUMBERS (elf_dlx_reloc_type)
 END_RELOC_NUMBERS (R_DLX_max)
 #endif /* 0 */
 
+extern int set_dlx_skip_hi16_flag (int);
+
 #ifdef __cplusplus
      }
 #endif
-- 
2.8.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]