Re: _bfd_free_cached_info
authorAlan Modra <amodra@gmail.com>
Thu, 8 Jun 2023 01:07:40 +0000 (10:37 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 8 Jun 2023 01:07:40 +0000 (10:37 +0930)
Oops, another leak caused by not defining the correct macro.

* elf32-mips.c: Define bfd_elf32_bfd_free_cached_info.
* elfn32-mips.c: Likewise.
* elf64-mips.c: Define bfd_elf64_bfd_free_cached_info.

bfd/elf32-mips.c
bfd/elf64-mips.c
bfd/elfn32-mips.c

index 27bd98607fe54955a7c2b204993023b3930c70c7..34ffa67edec202d61d7b6d00f7602abcebfa75f9 100644 (file)
@@ -2599,7 +2599,7 @@ static const struct ecoff_debug_swap mips_elf32_ecoff_debug_swap = {
                                        _bfd_mips_elf_print_private_bfd_data
 #define bfd_elf32_bfd_relax_section    _bfd_mips_elf_relax_section
 #define bfd_elf32_mkobject             _bfd_mips_elf_mkobject
-#define bfd_elf32_free_cached_info     _bfd_mips_elf_free_cached_info
+#define bfd_elf32_bfd_free_cached_info _bfd_mips_elf_free_cached_info
 
 /* Support for SGI-ish mips targets.  */
 #define TARGET_LITTLE_SYM              mips_elf32_le_vec
index 1179f622193b662bd2320151127e7405fa199634..0530be1253f4ed170b30eaea398ae5599402423f 100644 (file)
@@ -4815,7 +4815,7 @@ const struct elf_size_info mips_elf64_size_info =
 
 #define bfd_elf64_get_dynamic_reloc_upper_bound mips_elf64_get_dynamic_reloc_upper_bound
 #define bfd_elf64_mkobject             _bfd_mips_elf_mkobject
-#define bfd_elf64_free_cached_info     _bfd_mips_elf_free_cached_info
+#define bfd_elf64_bfd_free_cached_info _bfd_mips_elf_free_cached_info
 
 /* The SGI style (n)64 NewABI.  */
 #define TARGET_LITTLE_SYM              mips_elf64_le_vec
index e6aa16735862012a00d97f4c1ec36c48d12c88cc..3ae11e2f992530270980bdcd6e570aea55365aef 100644 (file)
@@ -4197,7 +4197,7 @@ static const struct ecoff_debug_swap mips_elf32_ecoff_debug_swap = {
 #define bfd_elf32_bfd_print_private_bfd_data \
                                        _bfd_mips_elf_print_private_bfd_data
 #define bfd_elf32_mkobject             mips_elf_n32_mkobject
-#define bfd_elf32_free_cached_info     _bfd_mips_elf_free_cached_info
+#define bfd_elf32_bfd_free_cached_info _bfd_mips_elf_free_cached_info
 
 /* Support for SGI-ish mips targets using n32 ABI.  */