summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2012-06-14 16:03:01 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2012-06-21 08:05:31 +0200
commit904a0ec9d0ae4f4af8bcb13363d6766a6feace6a (patch)
tree29d1111d16cc0db1d0623816741b203fc45f88de /src/arch/x86
parent14546853274bb21a760230ef5570d03bcb43430f (diff)
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 <nico.huber@secunet.com> Reviewed-on: http://review.coreboot.org/1129 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/lib/id.lds2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/lib/id.lds b/src/arch/x86/lib/id.lds
index 9e31ee615c..cfd091dc17 100644
--- a/src/arch/x86/lib/id.lds
+++ b/src/arch/x86/lib/id.lds
@@ -1,5 +1,5 @@
SECTIONS {
- . = (0x100000000 - CONFIG_ID_SECTION_OFFSET) - (__id_end - __id_start);
+ . = (0xffffffff - CONFIG_ID_SECTION_OFFSET) - (__id_end - __id_start) + 1;
.id (.): {
*(.id)
}