Commit: ld stats: Add memory usage info

Nick Clifton nickc@redhat.com
Wed Jan 7 10:44:14 GMT 2026


Hi Guys,

  I am applying the patch below to update ld's --stats option so that it
  also records memory use information if the mallinfo() or mallinfo2()
  functions are available.

  In the process I also added a new, fake, link stage called PHASE_DEBUG
  which can be used to immediately emit memory use information.  As you
  might guess from this, I am trying to track down the big memory
  consumers inside the linking process...

Cheers
  Nick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld.stats.memory.patch
Type: text/x-patch
Size: 12833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260107/068054c2/attachment-0001.bin>


More information about the Binutils mailing list