From bd25fe979bee6a2912b671b7f811192c51c5f95f Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sat, 3 Dec 2005 23:12:07 +0000 Subject: applied 1202_ldscript.diff from issue 45. This fixes images smaller than 64k git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2126 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/init/ldscript.lb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/arch/i386') diff --git a/src/arch/i386/init/ldscript.lb b/src/arch/i386/init/ldscript.lb index 1e712a3117..e647fb42fe 100644 --- a/src/arch/i386/init/ldscript.lb +++ b/src/arch/i386/init/ldscript.lb @@ -43,7 +43,8 @@ SECTIONS _eram = . ; } - . = _ROMBASE + ROM_IMAGE_SIZE - 0x10000; + _x = .; + . = (_x < (_ROMBASE - 0x10000 + ROM_IMAGE_SIZE)) ? (_ROMBASE - 0x10000 + ROM_IMAGE_SIZE) : _x; /* This section might be better named .setup */ .rom . : { -- cgit v1.2.3