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:
parent
b124dcf935
commit
bcabf2fa74
|
@ -49,4 +49,5 @@ SECTIONS
|
|||
*(.comment.*)
|
||||
*(.note.*)
|
||||
}
|
||||
_bogus = ASSERT((SIZEOF(.bss) + SIZEOF(.data)) == 0, "Do not use global variables in romstage");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue