Commit 303996da authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

powerpc: Make sure _etext is after all kernel text

This makes core_kernel_text() (and therefore kernel_text_address())
return the correct result.  Currently all the __devinit routines (at
least) will not be considered to be kernel text.

This is just a quick fix for 2.6.27 - hopefully we will be able to fix
this better in 2.6.28.
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 9e88ba4e
...@@ -66,10 +66,11 @@ SECTIONS ...@@ -66,10 +66,11 @@ SECTIONS
__got2_end = .; __got2_end = .;
#endif /* CONFIG_PPC32 */ #endif /* CONFIG_PPC32 */
} :kernel
. = ALIGN(PAGE_SIZE); . = ALIGN(PAGE_SIZE);
_etext = .; _etext = .;
PROVIDE32 (etext = .); PROVIDE32 (etext = .);
} :kernel
/* Read-only data */ /* Read-only data */
RODATA RODATA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment