From: H. Peter Anvin Date: Tue, 17 Mar 2009 02:20:02 +0000 (-0700) Subject: memdisk: align .bss to a 16-byte boundary for better zeroing perf X-Git-Tag: syslinux-3.74-pre7~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67ede4c57a1a2e8e1964bb709e443b85d78fcab3;p=platform%2Fupstream%2Fsyslinux.git 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... --- 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 = .);