Revision: 17728
          http://sourceforge.net/p/edk2/code/17728
Author:   yingke
Date:     2015-06-29 03:20:25 +0000 (Mon, 29 Jun 2015)
Log Message:
-----------
BaseTools: Added GCC ld script to support 4K alignment.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yingke Liu <yingke.d....@intel.com>
Reviewed-by: Liming Gao <liming....@intel.com>

Added Paths:
-----------
    trunk/edk2/BaseTools/Scripts/gcc-4K-align-ld-script

Added: trunk/edk2/BaseTools/Scripts/gcc-4K-align-ld-script
===================================================================
--- trunk/edk2/BaseTools/Scripts/gcc-4K-align-ld-script                         
(rev 0)
+++ trunk/edk2/BaseTools/Scripts/gcc-4K-align-ld-script 2015-06-29 03:20:25 UTC 
(rev 17728)
@@ -0,0 +1,44 @@
+/* OUTPUT_FORMAT(efi-bsdrv-x86_64) */
+SECTIONS
+{
+  /* . = 0 + SIZEOF_HEADERS; */
+  . = 0x280;
+  .text: ALIGN(0x1000) 
+  {
+    *(.text .stub .text.* .gnu.linkonce.t.*)
+    . = ALIGN(0x20);
+  }
+  .data: ALIGN(0x1000)
+  {
+    *(
+      .rodata .rodata.* .gnu.linkonce.r.*
+      .data .data.* .gnu.linkonce.d.*
+      .bss .bss.*
+      *COM*
+    )
+    . = ALIGN(0x20);
+  }
+  .eh_frame: ALIGN(0x1000)
+  {
+    KEEP (*(.eh_frame))
+  }
+  .got: ALIGN(0x1000)
+  {
+    *(.got .got.*)
+    . = ALIGN(0x20);
+  }
+  .rela: ALIGN(0x1000)
+  {
+    *(.rela .rela.*)
+  }
+  /DISCARD/ : {
+    *(.note.GNU-stack) *(.gnu_debuglink)
+    *(.interp)
+    *(.dynsym)
+    *(.dynstr)
+    *(.dynamic)
+    *(.hash)
+    *(.comment)
+  }
+}
+


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to