]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Scripts/GccBase.lds
ArmPlatformPkg/PrePi RVCT: use relative reference to mSystemMemoryEnd
[mirror_edk2.git] / BaseTools / Scripts / GccBase.lds
index 7e4cdde9bfea8405ce4b2b375fda903d9a64b976..900848747144dba08a1af4e601c0dbd3917dbef6 100644 (file)
@@ -54,7 +54,7 @@ SECTIONS {
     KEEP (*(.eh_frame))\r
   }\r
 \r
-  .rela ALIGN(CONSTANT(COMMONPAGESIZE)) : {\r
+  .rela (INFO) : {\r
     *(.rela .rela.*)\r
   }\r
 \r
@@ -62,6 +62,12 @@ SECTIONS {
     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