coreboot-kgpe-d16/src
Ronald G. Minnich 9b4c92ad80 Fix the error message for romstage when .bss or .data are non-zero
The error message from romstage is annoying and misleading:
"Do not use global variables in romstage"

Because it can occur even when global variables are not used
in some circumstances, but also because it gives you only a rough
idea where to look. This change sucks but sucks less. We still don't
know which file the problem is in but at least we know if it is data
or bss.

Replace the error message with something that provides more information
and less guessing on the part of the script:
".bss is non-zero size in romstage which is not allowed -- global variable?"
or
".data is non-zero size in romstage which is not allowed -- global variable?"

To test: build coreboot as normal. It builds.
Add
char d[32];
to romstage.c and get the first error message; add
int x = 32;
to romstage.c and get the second.

Change-Id: I300ec05bdb4b30d7ef3f5112e6cc09b1fafe8263
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: http://review.coreboot.org/1160
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
2012-07-03 09:43:38 +02:00
..
arch/x86 Fix the error message for romstage when .bss or .data are non-zero 2012-07-03 09:43:38 +02:00
boot Hook up MRC cache update 2012-05-11 00:30:03 +02:00
console Implement %zu / %zd in printk 2012-05-26 07:16:40 +02:00
cpu AGESA F15 wrapper for Trinity 2012-07-03 09:38:55 +02:00
devices Clean up #ifs 2012-05-08 00:34:34 +02:00
drivers Use broadcast SIPI to startup siblings 2012-07-02 19:39:08 +02:00
ec Add EC component for SMSC MEC1308/1310 2012-04-02 18:42:40 +02:00
include AGESA F15 wrapper for Trinity 2012-07-03 09:38:55 +02:00
lib Don't loop infinitely long on serial comm failures 2012-05-08 04:34:26 +02:00
mainboard remove CONFIG_SERIAL_CPU_INIT 2012-07-02 21:44:36 +02:00
northbridge AGESA F15 wrapper for Trinity 2012-07-03 09:38:55 +02:00
southbridge AGESA F15 wrapper for Trinity 2012-07-03 09:38:55 +02:00
superio Unmark source files as executables 2012-05-10 08:44:08 +02:00
vendorcode AGESA F15tn: AMD family15 AGESA code for Trinity 2012-07-03 09:36:35 +02:00
Kconfig Add an option for Waiting for gdb connection if the gdb stub configuration is chosen. 2012-06-23 07:50:07 +02:00
Kconfig.deprecated_options Unify ID_SECTION_OFFSET and mark it deprecated 2012-01-18 11:21:39 +01:00