Re: [PATCH 1/5] Include *(.text.*) in TEXT_TEXT

From: Tim Abbott
Date: Mon Jun 14 2010 - 10:32:57 EST

On Mon, 14 Jun 2010, Matt Fleming wrote:

> Many architectures collect text sections beginning with '.text.' in
> their .text section, so move this pattern into TEXT_TEXT to stop them
> all having to duplicate the pattern in their arch/ linker scripts.

Hi Matt,

I think this change could result in problems such as the page-aligned text
sections (recently renamed from .text.page_aligned to .text..page_aligned)
that exist in some architectures being included the main text section in a
non-page-aligned fashion (and similar issues for other

I was planning to submit in the next couple weeks a change that adds
support for building the kernel with -ffunction-sections -fdata-sections,
which would have as a piece of it adding to TEXT_TEXT the following

*(.text.[A-Za-z$_]*) /* handle -ffunction-sections */\

which should match the sections generated by -ffunction-sections
but not the kernel's special sections which now all have names of the form I suspect after that change, the cleanup of deleting .text.*
from the various architecture linker scripts that reference it should be

-Tim Abbott
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at