summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-09-25 14:15:41 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-09-25 14:15:41 +0000
commitbcabf2fa749f0690da982aaba52d9045f231c119 (patch)
tree73d46f0960603a0715548904126451222a5abd6f /src/arch
parentb124dcf93564732100154305b8e49b2b72c6b5f6 (diff)
downloadcoreboot-bcabf2fa749f0690da982aaba52d9045f231c119.tar.xz
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@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5841 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/init/ldscript_fallback_cbfs.lb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/i386/init/ldscript_fallback_cbfs.lb b/src/arch/i386/init/ldscript_fallback_cbfs.lb
index 22e06d8941..480fd32d5d 100644
--- a/src/arch/i386/init/ldscript_fallback_cbfs.lb
+++ b/src/arch/i386/init/ldscript_fallback_cbfs.lb
@@ -49,4 +49,5 @@ SECTIONS
*(.comment.*)
*(.note.*)
}
+ _bogus = ASSERT((SIZEOF(.bss) + SIZEOF(.data)) == 0, "Do not use global variables in romstage");
}