[coreboot] [commit] r5841 - trunk/src/arch/i386/init

repository service svn at coreboot.org
Sat Sep 25 16:15:42 CEST 2010


Author: oxygene
Date: Sat Sep 25 16:15:41 2010
New Revision: 5841
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5841

Log:
Make globals in romstage break the build, so we don't have to 
wonder why variables in .data or .bss (both somewhere in ROM space)
are wrong.

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>

Modified:
   trunk/src/arch/i386/init/ldscript_fallback_cbfs.lb

Modified: trunk/src/arch/i386/init/ldscript_fallback_cbfs.lb
==============================================================================
--- trunk/src/arch/i386/init/ldscript_fallback_cbfs.lb	Sat Sep 25 14:37:33 2010	(r5840)
+++ trunk/src/arch/i386/init/ldscript_fallback_cbfs.lb	Sat Sep 25 16:15:41 2010	(r5841)
@@ -49,4 +49,5 @@
 		*(.comment.*)
 		*(.note.*)
 	}
+	_bogus = ASSERT((SIZEOF(.bss) + SIZEOF(.data)) == 0, "Do not use global variables in romstage");
 }




More information about the coreboot mailing list