From: Trevor Saunders Date: Sat, 4 Jun 2016 01:43:06 +0000 (-0400) Subject: dlx: move prototype of dlx_set_skip_hi16 to elf/dlx.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48afb19489cf39cb7f48e24fe7c567a9cd438b95;p=binutils-gdb.git dlx: move prototype of dlx_set_skip_hi16 to elf/dlx.h bfd/ChangeLog: 2016-06-27 Trevor Saunders * elf32-dlx.h: New file. * elf32-dlx.c: Adjust. gas/ChangeLog: 2016-06-27 Trevor Saunders * config/tc-dlx.c: Include bfd/elf32-dlx.h. * config/tc-dlx.h: Remove prototype of dlx_set_skip_hi16. --- diff --git a/bfd/elf32-dlx.c b/bfd/elf32-dlx.c index b5c7d6e8a80..0dcb706f2ad 100644 --- a/bfd/elf32-dlx.c +++ b/bfd/elf32-dlx.c @@ -23,6 +23,7 @@ #include "libbfd.h" #include "elf-bfd.h" #include "elf/dlx.h" +#include "elf32-dlx.h" #define USE_REL 1 @@ -40,8 +41,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/bfd/elf32-dlx.h b/bfd/elf32-dlx.h new file mode 100644 index 00000000000..f2cdd1215d3 --- /dev/null +++ b/bfd/elf32-dlx.h @@ -0,0 +1,34 @@ +/* DLX specific support for 32-bit ELF + Copyright (C) 2002-2016 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. */ + +#ifndef _ELF32_DLX_H +#define _ELF32_DLX_H + +#ifdef __cplusplus +extern "C" { +#endif + +extern int set_dlx_skip_hi16_flag (int); + +#ifdef __cplusplus + } +#endif + +#endif /* _ELF32_DLX_H */ diff --git a/gas/config/tc-dlx.c b/gas/config/tc-dlx.c index 03e8de9ea25..079a9b6ae97 100644 --- a/gas/config/tc-dlx.c +++ b/gas/config/tc-dlx.c @@ -24,6 +24,8 @@ #include "safe-ctype.h" #include "tc-dlx.h" #include "opcode/dlx.h" +#include "elf/dlx.h" +#include "bfd/elf32-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 aa1b1575f5e..8da1c11f764 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 *);