RFC: Closing memory leaks to reduce the BFD linker's memory profile

Alan Modra amodra@gmail.com
Fri Jan 16 05:57:52 GMT 2026


On Fri, Jan 09, 2026 at 03:39:48PM +0000, Nick Clifton wrote:
>   closure.  But overall I am wondering whether this is actually a useful
>   exercise or if I should be looking elsewhere for memory savings.

This one does seem worth fixing, but I'd say it would be better done
by allocating the matching_sections list on a new obstack which then
is easy to throw away.

-- 
Alan Modra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-some-ldlang-functions-inline.patch
Type: text/x-diff
Size: 3554 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260116/e8d2c54c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ld-put-wild-matching_sections-on-an-obstack.patch
Type: text/x-diff
Size: 2154 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260116/e8d2c54c/attachment-0001.bin>


More information about the Binutils mailing list