Prechádzať zdrojové kódy

Blackfin arch: reclaim a few bytes from the end of our init section

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Mike Frysinger 17 rokov pred
rodič
commit
36208059c1
1 zmenil súbory, kde vykonal 8 pridanie a 3 odobranie
  1. 8 3
      arch/blackfin/kernel/vmlinux.lds.S

+ 8 - 3
arch/blackfin/kernel/vmlinux.lds.S

@@ -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 = .;