]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Calculate VMLINUZ_LOAD_ADDRESS based on the length of vmlinux.bin
authorShmulik Ladkani <shmulik.ladkani@gmail.com>
Tue, 31 Aug 2010 10:24:19 +0000 (13:24 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 4 Oct 2010 17:34:00 +0000 (18:34 +0100)
commit661c47263cf6e62186712f80ef8a505854321b92
tree711d6dceb694b10a827347e4d29e3297887c99ea
parent3d21e9f72280e2a781a2e71becff6bd7507777ce
MIPS: Calculate VMLINUZ_LOAD_ADDRESS based on the length of vmlinux.bin

Fix VMLINUZ_LOAD_ADDRESS calculation to be based on the length of
vmlinux.bin, the actual uncompressed kernel binary.

Previously it was based on the length of KBUILD_IMAGE (the unstripped ELF
vmlinux), which is bigger than vmlinux.bin.  As a result, vmlinuz was
loaded into a memory address higher then actually needed - a problem for
small memory platforms.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
To: linux-mips@linux-mips.org
Cc: alex@digriz.org.uk
Cc: manuel.lauss@googlemail.com
Cc: sam@ravnborg.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1564/
Acked-by: Wu Zhangjin <wuzhangjin@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/boot/compressed/Makefile