summaryrefslogtreecommitdiff
path: root/BaseTools/Scripts/gcc-4K-align-ld-script
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Scripts/gcc-4K-align-ld-script')
-rw-r--r--BaseTools/Scripts/gcc-4K-align-ld-script10
1 files changed, 5 insertions, 5 deletions
diff --git a/BaseTools/Scripts/gcc-4K-align-ld-script b/BaseTools/Scripts/gcc-4K-align-ld-script
index 34957a5314..51daae04d8 100644
--- a/BaseTools/Scripts/gcc-4K-align-ld-script
+++ b/BaseTools/Scripts/gcc-4K-align-ld-script
@@ -2,14 +2,14 @@
SECTIONS
{
/* . = 0 + SIZEOF_HEADERS; */
- . = 0x280;
- .text : ALIGN(0x1000)
+ . = PECOFF_HEADER_SIZE;
+ .text : ALIGN(CONSTANT(COMMONPAGESIZE))
{
*(.text .stub .text.* .gnu.linkonce.t.*)
*(.rodata .rodata.* .gnu.linkonce.r.*)
*(.got .got.*)
}
- .data : ALIGN(0x1000)
+ .data : ALIGN(CONSTANT(COMMONPAGESIZE))
{
*(
.data .data.* .gnu.linkonce.d.*
@@ -17,11 +17,11 @@ SECTIONS
*COM*
)
}
- .eh_frame : ALIGN(0x1000)
+ .eh_frame : ALIGN(CONSTANT(COMMONPAGESIZE))
{
KEEP (*(.eh_frame))
}
- .rela : ALIGN(0x1000)
+ .rela : ALIGN(CONSTANT(COMMONPAGESIZE))
{
*(.rela .rela.*)
}