diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2009-04-03 16:50:27 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2009-04-03 16:50:27 -0700 |
commit | 69cbf4d6cc3469650e6d0d581220251ca45c36f4 (patch) | |
tree | f1f5a80510481d23fe74d6f1ada661730e5c74d4 | |
parent | ddad35c72c939a87ee840cde7522cd7ef907b6b5 (diff) | |
download | syslinux-69cbf4d6cc3469650e6d0d581220251ca45c36f4.tar.gz |
linux.c32: don't relocate the real-mode code *above* 0x90000
Do not relocate the real-mode code above address 0x90000... that would
not be prudent.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | com32/lib/syslinux/load_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c index 4f583cd7..daea1266 100644 --- a/com32/lib/syslinux/load_linux.c +++ b/com32/lib/syslinux/load_linux.c @@ -318,7 +318,7 @@ int syslinux_boot_linux(void *kernel_buf, size_t kernel_size, end = 640*1024; start = ALIGN_UP(start, 16); - if (start >= end) + if (start > 0x90000 || start >= end) continue; if (end - start >= cmdline_offset+cmdline_size) { |