]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Scripts/GccBase.lds
BaseTools: remove the hardcoded /bin/bash for PreBuild/PostBuild
[mirror_edk2.git] / BaseTools / Scripts / GccBase.lds
index 900848747144dba08a1af4e601c0dbd3917dbef6..41e5c0b4a76942079b99abf5852760c74e993a79 100644 (file)
@@ -32,11 +32,14 @@ SECTIONS {
     *(.got .got.*)\r
 \r
     /*\r
-     * The contents of AutoGen.c files are constant from the POV of the program,\r
-     * but most of its contents end up in .data or .bss by default since few of\r
+     * The contents of AutoGen.c files are mostly constant from the POV of the\r
+     * program, but most of it ends up in .data or .bss by default since few of\r
      * the variable definitions that get emitted are declared as CONST.\r
+     * Unfortunately, we cannot pull it into the .text section entirely, since\r
+     * patchable PCDs are also emitted here, but we can at least move all of the\r
+     * emitted GUIDs here.\r
      */\r
-    *:AutoGen.obj(.data .data.* .bss .bss.*)\r
+    *:AutoGen.obj(.data.g*Guid)\r
   }\r
 \r
   /*\r