Make globals in romstage break the build, so we don't have to
authorPatrick Georgi <patrick.georgi@coresystems.de>
Sat, 25 Sep 2010 14:15:41 +0000 (14:15 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Sat, 25 Sep 2010 14:15:41 +0000 (14:15 +0000)
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

src/arch/i386/init/ldscript_fallback_cbfs.lb

index 22e06d894126f48b5fb24dab3a79397226190cfe..480fd32d5df4b185301435f0d868b623bb473690 100644 (file)
@@ -49,4 +49,5 @@ SECTIONS
                *(.comment.*)
                *(.note.*)
        }
+       _bogus = ASSERT((SIZEOF(.bss) + SIZEOF(.data)) == 0, "Do not use global variables in romstage");
 }