]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
nm.c free_lineno_cache
authorAlan Modra <amodra@gmail.com>
Sun, 8 Dec 2024 10:57:27 +0000 (21:27 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 12 Dec 2024 05:34:51 +0000 (16:04 +1030)
commit2b76d69e57a44a524a675edc957ee795a52dd34c
tree3b24397984376f03c83ec5d23a7200f41bd7b137
parent6f0ab551876087d8bcce55beb55e58d72ae78d98
nm.c free_lineno_cache

free_lineno_cache frees symbol and relocation data used when displaying
line number info for symbols (nm -l).  Currently that is done when
closing the bfd, but that's not ideal for archives since that results
in two bfds worth of memory in use.

* nm.c (display_rel_file): Call free_lineno_cache here..
(display_archive, display_file): ..not here.
binutils/nm.c