bfd_elf32_rx_set_target_flags
Alan Modra <[email protected]>
| Newsgroups | gmane.comp.gnu.binutils |
|---|---|
| Message-ID | <[email protected]> |
Properly declare the above function in elf32-rx.h.
bfd/
* elf32-rx.h (rx_additional_link_map_text): Remove param names.
(bfd_elf32_rx_set_target_flags): Declare.
* elf32-rx.c (bfd_elf32_rx_set_target_flags): Don't declare here.
ld/
* emultempl/rxelf.em (rx_elf_create_output_section_statements):
Don't declare bfd_elf32_rx_set_target_flags/
* emultempl/rxlinux.em (rx_linux_create_output_section_statements):
Likewise.
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index 68eb99fd392..ca82781814e 100644
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -3126,8 +3126,6 @@ rx_elf_set_private_flags (bfd * abfd, flagword flags)
static bool no_warn_mismatch = false;
static bool ignore_lma = true;
-void bfd_elf32_rx_set_target_flags (bool, bool);
-
void
bfd_elf32_rx_set_target_flags (bool user_no_warn_mismatch,
bool user_ignore_lma)
diff --git a/bfd/elf32-rx.h b/bfd/elf32-rx.h
index 1cbbb25d37c..69c46fd6fd3 100644
--- a/bfd/elf32-rx.h
+++ b/bfd/elf32-rx.h
@@ -18,4 +18,5 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
-extern void rx_additional_link_map_text (bfd *obfd, struct bfd_link_info *info, FILE *mapfile);
+extern void bfd_elf32_rx_set_target_flags (bool, bool);
+extern void rx_additional_link_map_text (bfd *, struct bfd_link_info *, FILE *);
diff --git a/ld/emultempl/rxelf.em b/ld/emultempl/rxelf.em
index 2bf45cae01f..f244959c786 100644
--- a/ld/emultempl/rxelf.em
+++ b/ld/emultempl/rxelf.em
@@ -35,8 +35,6 @@ static bool ignore_lma = true;
static void
rx_elf_create_output_section_statements (void)
{
- extern void bfd_elf32_rx_set_target_flags (bool, bool);
-
bfd_elf32_rx_set_target_flags (no_flag_mismatch_warnings, ignore_lma);
}
diff --git a/ld/emultempl/rxlinux.em b/ld/emultempl/rxlinux.em
index 40c109978f9..34370303c08 100644
--- a/ld/emultempl/rxlinux.em
+++ b/ld/emultempl/rxlinux.em
@@ -32,8 +32,6 @@ fragment <<EOF
static void
rx_linux_create_output_section_statements (void)
{
- extern void bfd_elf32_rx_set_target_flags (bool, bool);
-
bfd_elf32_rx_set_target_flags (false, false);
}
--
Alan Modra