diff options
author | Alan Modra <amodra@gmail.com> | 2023-06-08 10:18:01 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-06-08 10:31:45 +0930 |
commit | 09d757a5c2f8824ef687b9c6d7ad834f89a3cc17 (patch) | |
tree | a7c2cef298acf0c9c39be109f7f3c1d400f910bf /bfd | |
parent | 16476ac950f6db54d49a9d205b522797d7cbee6c (diff) | |
download | binutils-09d757a5c2f8824ef687b9c6d7ad834f89a3cc17.zip binutils-09d757a5c2f8824ef687b9c6d7ad834f89a3cc17.tar.gz binutils-09d757a5c2f8824ef687b9c6d7ad834f89a3cc17.tar.bz2 |
Re: _bfd_free_cached_info
ELF targets with target-specific free_cache_info functions need to
call _bfd_elf_free_cached_info, not _bfd_generic_bfd_free_cached_info.
* elf64-ppc.c (ppc64_elf_free_cached_info): Call
_bfd_elf_free_cached_info.
* elfnn-aarch64.c (elfNN_aarch64_bfd_free_cached_info): Likewise.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/elf64-ppc.c | 2 | ||||
-rw-r--r-- | bfd/elfnn-aarch64.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 9c0762a..0e9a7ff 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -18406,7 +18406,7 @@ ppc64_elf_free_cached_info (bfd *abfd) if (opd->reloc_count == 0) free (ppc64_elf_section_data (opd)->u.opd.u.contents); - return _bfd_generic_bfd_free_cached_info (abfd); + return _bfd_elf_free_cached_info (abfd); } #include "elf64-target.h" diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index a75cd36..4592bd6 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -8742,7 +8742,7 @@ elfNN_aarch64_bfd_free_cached_info (bfd *abfd) bfd_map_over_sections (abfd, unrecord_section_via_map_over_sections, NULL); - return _bfd_generic_bfd_free_cached_info (abfd); + return _bfd_elf_free_cached_info (abfd); } /* Create dynamic sections. This is different from the ARM backend in that |