From 904a0ec9d0ae4f4af8bcb13363d6766a6feace6a Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Thu, 14 Jun 2012 16:03:01 +0200 Subject: Don't use 64-bit constant 0x100000000 in linker scripts The constant value 0x100000000 is used in linker scripts to calculate offsets from the end of 32-bit-addressed memory. There is nothing wrong with it, but 32-bit versions of ld do the calculation wrong. Change-Id: I4e27c6fd0c864b4d98f686588bf78c7aa48bcba8 Signed-off-by: Nico Huber Reviewed-on: http://review.coreboot.org/1129 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- src/southbridge/via/k8t890/romstrap.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/southbridge/via') diff --git a/src/southbridge/via/k8t890/romstrap.lds b/src/southbridge/via/k8t890/romstrap.lds index e2f470c8fb..67deebc9e9 100644 --- a/src/southbridge/via/k8t890/romstrap.lds +++ b/src/southbridge/via/k8t890/romstrap.lds @@ -22,7 +22,7 @@ /* Modified for K8T890 ROM strap by Rudolf Marek . */ SECTIONS { - . = (0x100000000 - 0x2c) - (__romstrap_end - __romstrap_start); + . = (0xffffffff - 0x2c) - (__romstrap_end - __romstrap_start) + 1; .romstrap (.): { *(.romstrap) } -- cgit v1.2.3