[binutils-gdb] bfd/ELF: _bfd_elf_linker_x86_set_options() is exposed to ld
Jan Beulich
jbeulich@sourceware.org
Fri Nov 7 14:03:24 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8bf8f4380db4ad92df3b1e40f310d36c04ec9dcb
commit 8bf8f4380db4ad92df3b1e40f310d36c04ec9dcb
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Nov 7 15:01:08 2025 +0100
bfd/ELF: _bfd_elf_linker_x86_set_options() is exposed to ld
As a non-private function, it shouldn't have a "_bfd_" prefix, but merely
a "bfd_" one.
Diff:
---
bfd/elf-linker-x86.h | 2 +-
bfd/elfxx-x86.c | 4 ++--
ld/emultempl/elf-x86.em | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bfd/elf-linker-x86.h b/bfd/elf-linker-x86.h
index cdd739e572a..9a4e5808727 100644
--- a/bfd/elf-linker-x86.h
+++ b/bfd/elf-linker-x86.h
@@ -108,5 +108,5 @@ struct elf_linker_x86_params
char call_nop_byte;
};
-extern void _bfd_elf_linker_x86_set_options
+extern void bfd_elf_linker_x86_set_options
(struct bfd_link_info *, struct elf_linker_x86_params *);
diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c
index 94e22d4d04e..1f7024f09c7 100644
--- a/bfd/elfxx-x86.c
+++ b/bfd/elfxx-x86.c
@@ -4975,8 +4975,8 @@ _bfd_x86_elf_link_fixup_gnu_properties
}
void
-_bfd_elf_linker_x86_set_options (struct bfd_link_info * info,
- struct elf_linker_x86_params *params)
+bfd_elf_linker_x86_set_options (struct bfd_link_info *info,
+ struct elf_linker_x86_params *params)
{
const struct elf_backend_data *bed
= get_elf_backend_data (info->output_bfd);
diff --git a/ld/emultempl/elf-x86.em b/ld/emultempl/elf-x86.em
index 411a4d62294..487bbbb496f 100644
--- a/ld/emultempl/elf-x86.em
+++ b/ld/emultempl/elf-x86.em
@@ -33,7 +33,7 @@ static struct elf_linker_x86_params params;
static void
elf_x86_create_output_section_statements (void)
{
- _bfd_elf_linker_x86_set_options (&link_info, ¶ms);
+ bfd_elf_linker_x86_set_options (&link_info, ¶ms);
}
EOF
More information about the Binutils-cvs
mailing list