This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: excessive stab information


On Thu, Apr 28, 2005 at 11:16:46AM -0400, Ian Lance Taylor wrote:
> "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.

I don't think it's a good idea even then.  It assumes that the paths in
stabs refer to files on the system where the linker is running.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]