This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: excessive stab information
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Andy Chittenden" <AChittenden at bluearc dot com>
- Cc: "Dave Korn" <dave dot korn at artimi dot com>, <binutils at sourceware dot org>, "Martin Dorey" <mdorey at bluearc dot com>
- Date: 28 Apr 2005 11:16:46 -0400
- Subject: Re: excessive stab information
- References: <89E85E0168AD994693B574C80EDB9C2701D6A3CD@uk-email.terastack.bluearc.com>
"Andy Chittenden" <AChittenden@bluearc.com> writes:
> I've now sorted out our #includes so that no header file defines a type
> within a #ifdef. This did save around 3% on the size of an elf so thanks
> for that suggestion. However, we still have massive stabs. Further
> analysis of the output of objdump --stabs led me to develop this patch
> to bfd/stabs.c which removes a further 2%: is it ok to apply?
Is it OK for you to apply? Sure, looks safe enough.
Is it OK for the GNU binutils? I dunno. First, it would have to use
lrealpath rather than realpath. Second, it seems to me that it will
slow down a stabs link slightly, but for most people will provide no
benefit. Most people do not refer to the same header file using two
different names.
Ian