summaryrefslogtreecommitdiffstats
path: root/BaseTools/Scripts/GccBase.lds
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Scripts/GccBase.lds')
-rw-r--r--BaseTools/Scripts/GccBase.lds9
1 files changed, 6 insertions, 3 deletions
diff --git a/BaseTools/Scripts/GccBase.lds b/BaseTools/Scripts/GccBase.lds
index 9008487471..41e5c0b4a7 100644
--- a/BaseTools/Scripts/GccBase.lds
+++ b/BaseTools/Scripts/GccBase.lds
@@ -32,11 +32,14 @@ SECTIONS {
*(.got .got.*)
/*
- * The contents of AutoGen.c files are constant from the POV of the program,
- * but most of its contents end up in .data or .bss by default since few of
+ * The contents of AutoGen.c files are mostly constant from the POV of the
+ * program, but most of it ends up in .data or .bss by default since few of
* the variable definitions that get emitted are declared as CONST.
+ * Unfortunately, we cannot pull it into the .text section entirely, since
+ * patchable PCDs are also emitted here, but we can at least move all of the
+ * emitted GUIDs here.
*/
- *:AutoGen.obj(.data .data.* .bss .bss.*)
+ *:AutoGen.obj(.data.g*Guid)
}
/*