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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tim Abbott
Date: Monday, June 14, 2010 - 7:32 am

On Mon, 14 Jun 2010, Matt Fleming wrote:


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 .text.foo 
sections).

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 
expression:

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

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

	-Tim Abbott
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/5] vmlinux.lds.h: Include *(.text.*) in TEXT_TEXT, Tim Abbott, (Mon Jun 14, 7:32 am)