memdisk: align .bss to a 16-byte boundary for better zeroing perf
authorH. Peter Anvin <hpa@zytor.com>
Tue, 17 Mar 2009 02:20:02 +0000 (19:20 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 17 Mar 2009 02:20:02 +0000 (19:20 -0700)
Some CPUs really want a reasonable alignment for a rep;stosl, so give
it to them...

memdisk/memdisk.ld

index 10d8a92..5b833c2 100644 (file)
@@ -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 = .);