aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-03-16 19:20:02 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-03-16 19:20:02 -0700
commit67ede4c57a1a2e8e1964bb709e443b85d78fcab3 (patch)
treeebcc3b3dd61211d21ac07020ad6f49212e159126 /memdisk
parent505039558c70d8ff66ff7af6119dcf1a74b00d0a (diff)
downloadsyslinux.git-67ede4c57a1a2e8e1964bb709e443b85d78fcab3.tar.gz
syslinux.git-67ede4c57a1a2e8e1964bb709e443b85d78fcab3.tar.xz
syslinux.git-67ede4c57a1a2e8e1964bb709e443b85d78fcab3.zip
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...
Diffstat (limited to 'memdisk')
-rw-r--r--memdisk/memdisk.ld4
1 files changed, 2 insertions, 2 deletions
diff --git a/memdisk/memdisk.ld b/memdisk/memdisk.ld
index 10d8a929..5b833c2a 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 = .);