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
This commit is contained in:
Stefan Reinauer 2005-12-03 23:12:07 +00:00
parent 4bd0de0b2e
commit bd25fe979b
1 changed files with 2 additions and 1 deletions

View File

@ -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 . : {