summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-07-01 20:30:56 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-07-01 22:03:21 +0200
commit6a02b3b3e4a28bb4e91cadb0b07a0942b254d404 (patch)
tree4cdcd8183ecad13d9543b7c8058dcd866bb97edd /src/lib
parent20864c1d6dc6102168743fe283fae7d16bf2cef2 (diff)
downloadcoreboot-6a02b3b3e4a28bb4e91cadb0b07a0942b254d404.tar.xz
linker scripts: Fix symbol handling for pre-RAM cbmem console
Some ld versions (eg. the one used in the chromium build system) mis-handled the redefined symbol in romstage.ld, so use the feature that exists for precisely that purpose. Change-Id: I184310ab20a02f6b3d569798448eac78b13e88a3 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10754 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/romstage.ld4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/romstage.ld b/src/lib/romstage.ld
index 7d552a76b1..ba154ef5e5 100644
--- a/src/lib/romstage.ld
+++ b/src/lib/romstage.ld
@@ -37,8 +37,8 @@
*(.rodata.*);
*(.data);
*(.data.*);
- _preram_cbmem_console = DEFINED(_preram_cbmem_console) ? _preram_cbmem_console : 0;
- _epreram_cbmem_console = DEFINED(_epreram_cbmem_console) ? _epreram_cbmem_console : 0;
+ PROVIDE(_preram_cbmem_console = .);
+ PROVIDE(_epreram_cbmem_console = _preram_cbmem_console);
. = ALIGN(8);
}