diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-08-03 08:21:49 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2015-08-03 08:21:49 +0000 |
commit | cdeb268cb0c2d1a1a80ac3c7edc83c6c535cdc7f (patch) | |
tree | 6acea8f536a9c982f8b2ac5f1031292af5c2dab3 | |
parent | fa1d29d5cce3d6acc70dcfa0445a4069f547f6e1 (diff) | |
download | edk2-cdeb268cb0c2d1a1a80ac3c7edc83c6c535cdc7f.zip edk2-cdeb268cb0c2d1a1a80ac3c7edc83c6c535cdc7f.tar.gz edk2-cdeb268cb0c2d1a1a80ac3c7edc83c6c535cdc7f.tar.bz2 |
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 <ard.biesheuvel@linaro.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18132 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | BaseTools/Scripts/gcc-4K-align-ld-script | 3 | ||||
-rw-r--r-- | BaseTools/Scripts/gcc4.4-ld-script | 3 | ||||
-rw-r--r-- | BaseTools/Scripts/gcc4.9-ld-script | 3 |
3 files changed, 0 insertions, 9 deletions
diff --git a/BaseTools/Scripts/gcc-4K-align-ld-script b/BaseTools/Scripts/gcc-4K-align-ld-script index 1f0f1af..3ed1c12 100644 --- a/BaseTools/Scripts/gcc-4K-align-ld-script +++ b/BaseTools/Scripts/gcc-4K-align-ld-script @@ -7,7 +7,6 @@ SECTIONS {
*(.text .stub .text.* .gnu.linkonce.t.*)
*(.rodata .rodata.* .gnu.linkonce.r.*)
- . = ALIGN(0x20);
}
.data : ALIGN(0x1000)
{
@@ -16,7 +15,6 @@ SECTIONS .bss .bss.*
*COM*
)
- . = ALIGN(0x20);
}
.eh_frame : ALIGN(0x1000)
{
@@ -25,7 +23,6 @@ SECTIONS .got : ALIGN(0x1000)
{
*(.got .got.*)
- . = ALIGN(0x20);
}
.rela : ALIGN(0x1000)
{
diff --git a/BaseTools/Scripts/gcc4.4-ld-script b/BaseTools/Scripts/gcc4.4-ld-script index 22b3220..0d86908 100644 --- a/BaseTools/Scripts/gcc4.4-ld-script +++ b/BaseTools/Scripts/gcc4.4-ld-script @@ -7,7 +7,6 @@ SECTIONS {
*(.text .stub .text.* .gnu.linkonce.t.*)
*(.rodata .rodata.* .gnu.linkonce.r.*)
- . = ALIGN(0x20);
}
.data ALIGN(0x20) :
{
@@ -16,7 +15,6 @@ SECTIONS .bss .bss.*
*COM*
)
- . = ALIGN(0x20);
}
.eh_frame ALIGN(0x20) :
{
@@ -25,7 +23,6 @@ SECTIONS .got ALIGN(0x20) :
{
*(.got .got.*)
- . = ALIGN(0x20);
}
.rela ALIGN(0x20) :
{
diff --git a/BaseTools/Scripts/gcc4.9-ld-script b/BaseTools/Scripts/gcc4.9-ld-script index 2ac86e3..207b9e1 100644 --- a/BaseTools/Scripts/gcc4.9-ld-script +++ b/BaseTools/Scripts/gcc4.9-ld-script @@ -7,7 +7,6 @@ SECTIONS {
*(.text .stub .text.* .gnu.linkonce.t.*)
*(.rodata .rodata.* .gnu.linkonce.r.*)
- . = ALIGN(0x20);
}
.data ALIGN(0x40) :
{
@@ -16,7 +15,6 @@ SECTIONS .bss .bss.*
*COM*
)
- . = ALIGN(0x20);
}
.eh_frame ALIGN(0x20) :
{
@@ -25,7 +23,6 @@ SECTIONS .got ALIGN(0x20) :
{
*(.got .got.*)
- . = ALIGN(0x20);
}
.rela ALIGN(0x20) :
{
|