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 <[email protected]>
Acked-by: Stefan Reinauer <[email protected]>

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");
 }

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to