Re: [PATCH] Drop exported symbols list if !modules

From: Matt Mackall
Date: Mon Apr 05 2004 - 18:37:40 EST


On Mon, Apr 05, 2004 at 04:30:19PM -0700, Andrew Morton wrote:
> Rusty Russell <rusty@xxxxxxxxxxxxxxx> wrote:
> >
> > On Tue, 2004-04-06 at 09:07, Matt Mackall wrote:
> > > On Tue, Apr 06, 2004 at 08:45:01AM +1000, Rusty Russell wrote:
> > > > On Tue, 2004-04-06 at 06:55, Matt Mackall wrote:
> > > > > Drop ksyms if we've built without module support
> > > > >
> > > > > From: Zwane Mwaikambo <zwane@xxxxxxxxxxxxxxxx>
> > > > > Subject: Re: 2.6.1-rc1-tiny2
> > > >
> > > > Other than saving a little compile time, does this actually do anything?
> > > >
> > > > I'm not against it, I just don't think I see the point.
> > >
> > > Well it obviously saves memory and image size too;
> >
> > Please measure it. It's not obvious to me at all.
>
> Miniscule savings
>
> text data bss dec hex filename
> 3221815 862456 0 4084271 3e522f vmlinux-before
> 3221591 862456 0 4084047 3e514f vmlinux-after

I was seeing this when I added it to my tree circa 2.6.1:

701262 58619 15616 775497 bd549 vmlinux before
700530 58619 15616 774765 bd26d vmlinux after

..which I would expect to grow with code size.

On the other hand, I'm now seeing:

0 0 0 0 0 arch/i386/kernel/i386_ksyms.o

So something's changed.

--
Matt Mackall : http://www.selenic.com : Linux development and consulting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/