From d48d68b618f0950f63bdf2842a550384c0c58bc3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 23 Sep 2019 10:01:31 +0930 Subject: [PATCH] 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. --- bfd/ChangeLog | 7 +++++++ bfd/bfd-in.h | 7 ------- bfd/bfd-in2.h | 7 ------- bfd/elf32-v850.c | 1 + bfd/elf32-v850.h | 25 +++++++++++++++++++++++++ ld/ChangeLog | 4 ++++ ld/emultempl/v850elf.em | 1 + 7 files changed, 38 insertions(+), 14 deletions(-) create mode 100644 bfd/elf32-v850.h diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d5521fb6dc1..61d31aaf974 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2019-09-23 Alan Modra + + * 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 * bfd-in.h: Move mips function declaration to.. diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index c2105e3a94e..fe5e1681283 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -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); diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 9960163e277..6d92b89e2a5 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -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); diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c index 21df3c8b9ac..c8a97ed129e 100644 --- a/bfd/elf32-v850.c +++ b/bfd/elf32-v850.c @@ -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) diff --git a/bfd/elf32-v850.h b/bfd/elf32-v850.h new file mode 100644 index 00000000000..0ed5871cce3 --- /dev/null +++ b/bfd/elf32-v850.h @@ -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); diff --git a/ld/ChangeLog b/ld/ChangeLog index 56fc0a2d926..fa5913e7bec 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2019-09-23 Alan Modra + + * emultempl/v850elf.em: Include elf32-v850.h. + 2019-09-23 Alan Modra * emultempl/cskyelf.em: Include elf32-csky.h. diff --git a/ld/emultempl/v850elf.em b/ld/emultempl/v850elf.em index ac7051f3b76..3e3e09d4bbf 100644 --- a/ld/emultempl/v850elf.em +++ b/ld/emultempl/v850elf.em @@ -24,6 +24,7 @@ # fragment <