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
This commit is contained in:
Patrick Georgi 2010-09-25 14:15:41 +00:00
parent b124dcf935
commit bcabf2fa74
1 changed files with 1 additions and 0 deletions

View File

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