v850 bfd.h tidy

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.
This commit is contained in:
Alan Modra 2019-09-23 10:01:31 +09:30
parent 7beeaeb8c6
commit d48d68b618
7 changed files with 38 additions and 14 deletions

View 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..

View 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);

View 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);

View 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)

25
bfd/elf32-v850.h Normal file
View File

@ -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);

View 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.

View File

@ -24,6 +24,7 @@
#
fragment <<EOF
#include "ldctor.h"
#include "elf32-v850.h"
static bfd_boolean
is_v850_target (void)