aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2009-08-09 15:06:24 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-08-19 20:29:29 -0400
commit903444e4297264ec0959e886695911659edb425c (patch)
tree87bcffec066757d3961446c290b671f35892c1f4 /arch/powerpc/kernel/vmlinux.lds.S
parenta15098c90df1ac2b1bfe1d33dd1c47063213aa9a (diff)
powerpc/vmlinux.lds: Move _edata down
Currently _edata does not include several data sections, this causes the kernel's report of memory usage at boot to not match reality, and also prevents kmemleak from working - because it scan between _sdata and _edata for pointers to allocated memory. This mirrors a similar change made recently to the x86 linker script. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/vmlinux.lds.S')
-rw-r--r--arch/powerpc/kernel/vmlinux.lds.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
index 8ef8a14abc95..3bb09975e342 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -245,10 +245,6 @@ SECTIONS
245 } 245 }
246#endif 246#endif
247 247
248 . = ALIGN(PAGE_SIZE);
249 _edata = .;
250 PROVIDE32 (edata = .);
251
252 /* The initial task and kernel stack */ 248 /* The initial task and kernel stack */
253#ifdef CONFIG_PPC32 249#ifdef CONFIG_PPC32
254 . = ALIGN(8192); 250 . = ALIGN(8192);
@@ -282,6 +278,10 @@ SECTIONS
282 __nosave_end = .; 278 __nosave_end = .;
283 } 279 }
284 280
281 . = ALIGN(PAGE_SIZE);
282 _edata = .;
283 PROVIDE32 (edata = .);
284
285/* 285/*
286 * And finally the bss 286 * And finally the bss
287 */ 287 */