Re: [PATCH 14/15] x86: convert to use __HEAD and HEAD_TEXT macros.

From: Linus Torvalds
Date: Sun Apr 26 2009 - 12:57:58 EST




On Sat, 25 Apr 2009, Tim Abbott wrote:
>
> This has the consequence of changing the section name use for head
> code from ".text.head" to ".head.text". Since this commit changes all
> users in the architecture, this change should be harmless.

Btw, this one really needs to unify the two lds files first. Look at

diff -u arch/x86/boot/compressed/vmlinux_*.lds

output and realize that they're basially exctly the same except for
trivial naming differences, and the fact that the64-bit version hs a
"pgtable" thing.

So this really needs to be done by first unifying the thing so that there
is _one_ arch/x86/boot/compressed/vmlinux.lds.S file with a preprocessor
that takes care of the trivial differences, and then after that, the
".text.init" games should just be removed.

Notice the _removed_.

I don't think the compressed stuff has any actual "init" code. It is just
a blob loader that loads the compressed kernel. There should be no need
for the init sections being special, so the vmlinux.lds.S file should just
have a ".text*" section.

Hmm?

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