commit | 08edd976116312550831cdfd3b5a4b069bdcca80 | [log] [tgz] |
---|---|---|
author | Alan Modra <amodra@gmail.com> | Wed Jun 21 14:33:59 2023 +0930 |
committer | Alan Modra <amodra@gmail.com> | Wed Jun 21 15:49:39 2023 +0930 |
tree | 282512b430114071c32d454caa20a15a43b1aefc | |
parent | 9a925d0dad55a3cd4e493642b81c668d2ab09d1d [diff] |
elf32_arm_get_synthetic_symtab memory leak ARM get_synthetic_symtab reads .plt and caches that data. Caching the data doesn't make a lot of sense since get_synthetic_symtab is only called once per bfd, and the memory might be put to better use. It also leaks on closing the bfd. * elf32-arm.c (elf32_arm_get_synthetic_symtab): Don't cache plt contents. Free plt data before returning.