]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
reloc caching
authorAlan Modra <amodra@gmail.com>
Mon, 13 Jan 2025 10:03:54 +0000 (20:33 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 19 Jan 2025 20:43:46 +0000 (07:13 +1030)
commit3a8864b3aa87330412f956a6ce233209eba133c8
tree07c3dcea730b90f3852ff1453c6ccdb7f2fd4e42
parentcb6326b5ceb7cfc784003c05b90b351d78c755fd
reloc caching

This arranges to free section relocs cached in elf_section_data.  To
do that, some relocs stored there need to use bfd_malloc buffers
rather than bfd_alloc ones.

* elf.c (_bfd_elf_free_cached_info): Free relocs.
* elf32-ppc.c (ppc_elf_relax_section): Realloc relocs rather
than malloc, copy, free old.
* elf64-ppc.c (get_relocs): bfd_malloc relocs.
* elflink.c (_bfd_elf_link_info_read_relocs): Always
bfd_malloc relocs.
bfd/elf.c
bfd/elf32-ppc.c
bfd/elf64-ppc.c
bfd/elflink.c