[PATCH] powerpc: move _etext out of the text section
Stephen Rothwell
sfr at canb.auug.org.au
Tue May 2 13:25:25 EST 2006
The readprofile program stops when it hits the first non-text symbol
after _stext. By moving _etext, it will become an absolute symbol and
so stop the readprofile output. This is a safety measure in case more
text symbols are placed directly after the text section.
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
---
arch/powerpc/kernel/vmlinux.lds.S | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
It would be nice if this was in 2.6.17, but 2.6.18 would also do.
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
77a86e7cdbf5eaa5810109f7632e5bff69e1a7e6
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
index fe79c25..9055f5a 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -46,12 +46,12 @@ #ifdef CONFIG_PPC32
*(.got2)
__got2_end = .;
#endif /* CONFIG_PPC32 */
-
- . = ALIGN(PAGE_SIZE);
- _etext = .;
- PROVIDE32 (etext = .);
}
+ . = ALIGN(PAGE_SIZE);
+ _etext = .;
+ PROVIDE32 (etext = .);
+
/* Read-only data */
RODATA
--
1.3.1.gaa6b
More information about the Linuxppc-dev
mailing list