From 67ede4c57a1a2e8e1964bb709e443b85d78fcab3 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 16 Mar 2009 19:20:02 -0700 Subject: [PATCH] memdisk: align .bss to a 16-byte boundary for better zeroing perf Some CPUs really want a reasonable alignment for a rep;stosl, so give it to them... --- memdisk/memdisk.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memdisk/memdisk.ld b/memdisk/memdisk.ld index 10d8a92..5b833c2 100644 --- a/memdisk/memdisk.ld +++ b/memdisk/memdisk.ld @@ -74,6 +74,7 @@ SECTIONS .data1 : { *(.data1) } _edata = .; PROVIDE (edata = .); + . = ALIGN(16); .bss : { __bss_start = .; @@ -83,10 +84,9 @@ SECTIONS /* Align here to ensure that the .bss section occupies space up to _end. Align after .bss to ensure correct alignment even if the .bss section disappears because there are no input sections. */ - . = ALIGN(32 / 8); + . = ALIGN(4); __bss_end = .; } - . = ALIGN(32 / 8); _end = .; PROVIDE (end = .); -- 2.7.4