Re: bloat and debugging code

Arvind Sankar (arvinds@mit.edu)
Sat, 24 Jul 1999 17:04:34 -0400


On Sat, Jul 24, 1999 at 11:07:53AM -0700, Zack Weinberg wrote:
>
> > > ld doesn't uniquify strings, so each occurence of CHECK_MAGIC() or
> > > BUG() is another duplicate.
> >
> > Which one of my upcoming changes to ld will fix sometime soon.
>
> Glad to hear - now I don't have to do it. :)
>
> Did you consider uniquifying the .comment section, too? That can get
> big -
>
> $ size -A /lib/libc.so.6
> /lib/libc.so.6 :
> [...]
> .comment 56511
>
> On a boot floppy, that's 55k that could be used for a few more drivers
> instead of ~900 copies of "GCC: (GNU) egcs-2.91.66 ..."

In that situation, wouldn't it be better to simply strip out the .comment
section?

-- arvind

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/