summaryrefslogtreecommitdiff
path: root/src/arch/i386/init
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/i386/init')
-rw-r--r--src/arch/i386/init/ldscript.lb3
1 files changed, 2 insertions, 1 deletions
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 . : {