From 433b4f8ab7da82f4e8cecf4774722969ce330572 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 6 Mar 2024 15:23:56 -0800 Subject: bfd: Don't hard-code BFD_JUMP_TABLE_COPY In BFD_JUMP_TABLE_COPY, replace _bfd_generic_init_private_section_data with NAME##_init_private_section_data so that ELF targets can properly replace it with _bfd_elf_init_private_section_data. * aout-target.h (MY_init_private_section_data): New. * coff-rs6000.c (_bfd_xcoff_init_private_section_data): New. * coffcode.h (coff_init_private_section_data): New. * elfxx-target.h (bfd_elfNN_init_private_section_data): New. * libecoff.h (_bfd_ecoff_init_private_section_data): New. * mach-o-target.c (bfd_mach_o_init_private_section_data): New. * mmo.c (mmo_init_private_section_data): New. * plugin.c (bfd_plugin_init_private_section_data): New. * ppcboot.c (ppcboot_init_private_section_data): New. * som.c (som_init_private_section_data): New. * targets.c (BFD_JUMP_TABLE_COPY): Replace _bfd_generic_init_private_section_data with NAME##_init_private_section_data. * vms-alpha.c (vms_init_private_section_data): New. * elf-bfd.h (_bfd_generic_init_private_section_data): Removed. * bfd-in2.h: Regenerated. --- bfd/libecoff.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bfd/libecoff.h') diff --git a/bfd/libecoff.h b/bfd/libecoff.h index 5e6de3c..50a0af7 100644 --- a/bfd/libecoff.h +++ b/bfd/libecoff.h @@ -250,6 +250,9 @@ extern bool _bfd_ecoff_get_section_contents #define _bfd_ecoff_bfd_link_split_section _bfd_generic_link_split_section #define _bfd_ecoff_bfd_link_check_relocs _bfd_generic_link_check_relocs +#define _bfd_ecoff_init_private_section_data \ + _bfd_generic_init_private_section_data + extern bool _bfd_ecoff_bfd_copy_private_bfd_data (bfd *, bfd *); #define _bfd_ecoff_bfd_copy_private_section_data \ -- cgit v1.1