Subject: Re: remove default of STRIPFLAG=-s ?
To: None <tech-toolchain@NetBSD.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-toolchain
Date: 02/12/2004 01:37:50
On Wed, Feb 11, 2004 at 22:02:32 +0000, David Laight wrote:

> > BTW, is there an opensource analog to SysV mcs(1) (manage comment
> > section)?  It can be stripped by adding -R .comment to STRIPFLAG, but
> > mcs(1) has a nice -c flag:
> > 
> >      -c    Compress the contents of the comment  section  of  the
> >            ELF  object  files. All duplicate entries are removed.
> >            The ordering of the  remaining  entries  is  not  dis-
> >            turbed.
> > 
> > The savings, though, are, arguably, minuscule - e.g. libc.so has a
> > .comment section of about 30K.
> 
> But only because we don't have #ident lines in all the header files.
> Do that and 'mcs -c' is your friend.

Ain't you confusing .ident and .comment?

Comment section is like 

    GCC: (GNU) 2.95.3 20010315 (release) (NetBSD nb3)

repeated umpteen times.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen