]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
Blackfin arch: reclaim a few bytes from the end of our init section
authorMike Frysinger <michael.frysinger@analog.com>
Tue, 30 Oct 2007 04:00:02 +0000 (12:00 +0800)
committerBryan Wu <bryan.wu@analog.com>
Tue, 30 Oct 2007 04:00:02 +0000 (12:00 +0800)
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
arch/blackfin/kernel/vmlinux.lds.S

index eec43674a46589a05411566d009ccc585e699904..9b75bc83c71fac9847cd8e0f578183dbfb87115c 100644 (file)
@@ -172,9 +172,14 @@ SECTIONS
                __ebss_b_l1 = .;
        }
 
-       ___init_end = LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1);
-
-       .bss LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1) :
+       /* Force trailing alignment of our init section so that when we
+        * free our init memory, we don't leave behind a partial page.
+        */
+       . = LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1);
+       . = ALIGN(PAGE_SIZE);
+       ___init_end = .;
+
+       .bss :
        {
                . = ALIGN(4);
                ___bss_start = .;