Re: [PATCH] x86_64: Do not use -ffunction-sections for modules

From: Andi Kleen
Date: Wed Jun 21 2006 - 12:53:37 EST


On Wednesday 21 June 2006 18:51, Sergey Vlasov wrote:

> > On Thursday 01 January 1970 01:00, Sergey Vlasov wrote:
> > > Currently CONFIG_REORDER uses -ffunction-sections for all code;
> > > however, creating a separate section for each function is not useful
> > > for modules and just adds bloat.
> >
> > You mean the ELF files are larger?
>
> Yes, and all these sections are then reported in sysfs (BTW, what programs
> really use /sys/module/*/sections/* files?).

Good question. I also always considered it bloat.

>
> > .text/.data size shouldn't > change in theory.
>
> Actually, it does change by a small amount for some reason - even
> increases by about 100 bytes in some cases;

Ok maybe a few small vs large jumps

> however, I suppose that the
> size reported by /proc/modules and lsmod is more important, and it
> decreases:

Ok thanks.

-Andi
-
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/