Revision: 18132
          http://sourceforge.net/p/edk2/code/18132
Author:   abiesheuvel
Date:     2015-08-03 08:21:49 +0000 (Mon, 03 Aug 2015)
Log Message:
-----------
BaseTools IA32/X64: drop redundant alignment from linker script

There is no need to pad out the end of a section of the start of
the following section is aligned to the same value. So drop the
redundant ALIGN() statements.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Tested-by: Liming Gao <[email protected]>

Modified Paths:
--------------
    trunk/edk2/BaseTools/Scripts/gcc-4K-align-ld-script
    trunk/edk2/BaseTools/Scripts/gcc4.4-ld-script
    trunk/edk2/BaseTools/Scripts/gcc4.9-ld-script

Modified: trunk/edk2/BaseTools/Scripts/gcc-4K-align-ld-script
===================================================================
--- trunk/edk2/BaseTools/Scripts/gcc-4K-align-ld-script 2015-08-03 08:21:39 UTC 
(rev 18131)
+++ trunk/edk2/BaseTools/Scripts/gcc-4K-align-ld-script 2015-08-03 08:21:49 UTC 
(rev 18132)
@@ -7,7 +7,6 @@
   {
     *(.text .stub .text.* .gnu.linkonce.t.*)
     *(.rodata .rodata.* .gnu.linkonce.r.*)
-    . = ALIGN(0x20);
   }
   .data : ALIGN(0x1000)
   {
@@ -16,7 +15,6 @@
       .bss .bss.*
       *COM*
     )
-    . = ALIGN(0x20);
   }
   .eh_frame : ALIGN(0x1000)
   {
@@ -25,7 +23,6 @@
   .got : ALIGN(0x1000)
   {
     *(.got .got.*)
-    . = ALIGN(0x20);
   }
   .rela : ALIGN(0x1000)
   {

Modified: trunk/edk2/BaseTools/Scripts/gcc4.4-ld-script
===================================================================
--- trunk/edk2/BaseTools/Scripts/gcc4.4-ld-script       2015-08-03 08:21:39 UTC 
(rev 18131)
+++ trunk/edk2/BaseTools/Scripts/gcc4.4-ld-script       2015-08-03 08:21:49 UTC 
(rev 18132)
@@ -7,7 +7,6 @@
   {
     *(.text .stub .text.* .gnu.linkonce.t.*)
     *(.rodata .rodata.* .gnu.linkonce.r.*)
-    . = ALIGN(0x20);
   }
   .data ALIGN(0x20) :
   {
@@ -16,7 +15,6 @@
       .bss .bss.*
       *COM*
     )
-    . = ALIGN(0x20);
   }
   .eh_frame ALIGN(0x20) :
   {
@@ -25,7 +23,6 @@
   .got ALIGN(0x20) :
   {
     *(.got .got.*)
-    . = ALIGN(0x20);
   }
   .rela ALIGN(0x20) :
   {

Modified: trunk/edk2/BaseTools/Scripts/gcc4.9-ld-script
===================================================================
--- trunk/edk2/BaseTools/Scripts/gcc4.9-ld-script       2015-08-03 08:21:39 UTC 
(rev 18131)
+++ trunk/edk2/BaseTools/Scripts/gcc4.9-ld-script       2015-08-03 08:21:49 UTC 
(rev 18132)
@@ -7,7 +7,6 @@
   {
     *(.text .stub .text.* .gnu.linkonce.t.*)
     *(.rodata .rodata.* .gnu.linkonce.r.*)
-    . = ALIGN(0x20);
   }
   .data ALIGN(0x40) :
   {
@@ -16,7 +15,6 @@
       .bss .bss.*
       *COM*
     )
-    . = ALIGN(0x20);
   }
   .eh_frame ALIGN(0x20) :
   {
@@ -25,7 +23,6 @@
   .got ALIGN(0x20) :
   {
     *(.got .got.*)
-    . = ALIGN(0x20);
   }
   .rela ALIGN(0x20) :
   {


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to