]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Scripts/GccBase.lds
BaseTools toolsetup.bat: set PATH to include Bin Win32 directory
[mirror_edk2.git] / BaseTools / Scripts / GccBase.lds
index 32310bc75dcc29ea720461ae90a2e69449521a84..900848747144dba08a1af4e601c0dbd3917dbef6 100644 (file)
@@ -4,6 +4,7 @@
 \r
   Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
   Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR>\r
+  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
 \r
   This program and the accompanying materials are licensed and made available under\r
   the terms and conditions of the BSD License that accompanies this distribution.\r
@@ -53,10 +54,20 @@ SECTIONS {
     KEEP (*(.eh_frame))\r
   }\r
 \r
-  .rela ALIGN(CONSTANT(COMMONPAGESIZE)) : {\r
+  .rela (INFO) : {\r
     *(.rela .rela.*)\r
   }\r
 \r
+  .hii : ALIGN(CONSTANT(COMMONPAGESIZE)) {\r
+    KEEP (*(.hii))\r
+  }\r
+\r
+  /*\r
+   * Retain the GNU build id but in a non-allocatable section so GenFw\r
+   * does not copy it into the PE/COFF image.\r
+   */\r
+  .build-id (INFO) : { *(.note.gnu.build-id) }\r
+\r
   /DISCARD/ : {\r
     *(.note.GNU-stack)\r
     *(.gnu_debuglink)\r