diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2015-07-01 20:30:56 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-07-01 22:03:21 +0200 |
commit | 6a02b3b3e4a28bb4e91cadb0b07a0942b254d404 (patch) | |
tree | 4cdcd8183ecad13d9543b7c8058dcd866bb97edd /src | |
parent | 20864c1d6dc6102168743fe283fae7d16bf2cef2 (diff) | |
download | coreboot-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')
-rw-r--r-- | src/lib/romstage.ld | 4 |
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); } |