diff options
author | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-06-03 21:43:06 -0400 |
---|---|---|
committer | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-06-27 05:57:32 -0400 |
commit | 48afb19489cf39cb7f48e24fe7c567a9cd438b95 (patch) | |
tree | 41f0f295d081e14d9b1716e49d76edea746077ca | |
parent | e066bf5f74fd776657accf02dececb7df120412f (diff) | |
download | gdb-48afb19489cf39cb7f48e24fe7c567a9cd438b95.zip gdb-48afb19489cf39cb7f48e24fe7c567a9cd438b95.tar.gz gdb-48afb19489cf39cb7f48e24fe7c567a9cd438b95.tar.bz2 |
dlx: move prototype of dlx_set_skip_hi16 to elf/dlx.h
bfd/ChangeLog:
2016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* elf32-dlx.h: New file.
* elf32-dlx.c: Adjust.
gas/ChangeLog:
2016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-dlx.c: Include bfd/elf32-dlx.h.
* config/tc-dlx.h: Remove prototype of dlx_set_skip_hi16.
-rw-r--r-- | bfd/elf32-dlx.c | 3 | ||||
-rw-r--r-- | bfd/elf32-dlx.h | 34 | ||||
-rw-r--r-- | gas/config/tc-dlx.c | 2 | ||||
-rw-r--r-- | gas/config/tc-dlx.h | 1 |
4 files changed, 37 insertions, 3 deletions
diff --git a/bfd/elf32-dlx.c b/bfd/elf32-dlx.c index b5c7d6e..0dcb706 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 0000000..f2cdd12 --- /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 03e8de9..079a9b6 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 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 *); |