[binutils-gdb] bfd_elf32_rx_set_target_flags
Alan Modra
amodra@sourceware.org
Sun Aug 30 22:19:27 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5f84fbf91d1cde7efb2ff96f35af753c5a47a2d6
commit 5f84fbf91d1cde7efb2ff96f35af753c5a47a2d6
Author: Alan Modra <amodra@gmail.com>
Date: Mon Aug 31 07:22:42 2026 +0930
bfd_elf32_rx_set_target_flags
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:
---
bfd/elf32-rx.c | 2 --
bfd/elf32-rx.h | 3 ++-
ld/emultempl/rxelf.em | 2 --
ld/emultempl/rxlinux.em | 2 --
4 files changed, 2 insertions(+), 7 deletions(-)
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);
}
More information about the Binutils-cvs
mailing list