From 12f7174bf069f407d5b6f12e926ceabe45e450e1 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 8 Jun 2023 10:37:40 +0930 Subject: [PATCH] Re: _bfd_free_cached_info 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 | 2 +- bfd/elf64-mips.c | 2 +- bfd/elfn32-mips.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 27bd98607fe..34ffa67edec 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -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 diff --git a/bfd/elf64-mips.c b/bfd/elf64-mips.c index 1179f622193..0530be1253f 100644 --- a/bfd/elf64-mips.c +++ b/bfd/elf64-mips.c @@ -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 diff --git a/bfd/elfn32-mips.c b/bfd/elfn32-mips.c index e6aa1673586..3ae11e2f992 100644 --- a/bfd/elfn32-mips.c +++ b/bfd/elfn32-mips.c @@ -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. */ -- 2.30.2