RFC: PATCH: Avoid reading debug symbols
H.J. Lu
hjl.tools@gmail.com
Wed Mar 19 14:37:00 GMT 2008
On Wed, Mar 19, 2008 at 6:21 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Wed, Mar 19, 2008 at 09:00:22PM +1030, Alan Modra wrote:
> > On Tue, Mar 18, 2008 at 12:36:41PM -0700, H.J. Lu wrote:
> > > Does this patch make senses?
> >
> > Why don't you tell us? Presumably the benefit is reduced memory usage
> > and/or faster symbol processing. Show the numbers..
> >
>
> I have an executable with 45 million debug symbols. The current
> strip runs out of memory on a machine with 4GB RAM and 2GB swap
> while reading in the whole symbol table. The new strip only
> takes less than 900MB memory.
>
Here is an updated patch. It tries to avoid loading debug symbols with
more than 1000000 symbols during linking when -s is used. I am not sure
if there will be relocations against debug symbols. If yes, I should also
discard relocations in debug sections.
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-debug-2.patch
Type: text/x-patch
Size: 36295 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20080319/d91cc4d1/attachment.bin>
More information about the Binutils
mailing list