Re: [PATCH v2 0/4] Add support for compiling with -ffunction-sections -fdata-sections

From: Andi Kleen
Date: Tue Apr 21 2009 - 06:20:56 EST


> Are there any advantages outside of the size things?

Yes ksplice needs it too.

> Do we end up packing data better?

There used to be tools to do that (use profile feedback to pack
code), but I'm not sure they would help the kernel too much
because they were mostly aimed at demand paging. But such tools
definitely would need this infrastructure. Iirc there are some architectures
othat benefit from hold/cold partioning during execution.

> I'd like to have some more champions of this code, in other words.

I definitely like the size angle -- letting the linker eliminate
code without ifdef jungles certainly sounds attractive to me.

Also if we find broken toolchains I suppose it wouldn't be too
difficult to black list them.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/