question about elf_slurp_symbol_table
Alan Modra
amodra@gmail.com
Wed Mar 5 01:12:39 GMT 2025
On Tue, Mar 04, 2025 at 07:21:10AM -0700, Tom Tromey wrote:
> It would be better, IMO, if either these symbols were cached and then
> just reused on subsequent calls;
Normal use case is to just call the function once, but yes, I guess
they could be cached. COFF targets do so.
> or if this memory were freed before
> returning.
Can't do that. The function sets up an array of pointers into that
memory.
--
Alan Modra
More information about the Binutils
mailing list