diff options
| author | Wu Zhangjin <wuzhangjin@gmail.com> | 2009-12-10 09:55:13 -0500 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2010-01-12 12:19:29 -0500 |
| commit | d4d9a553d7b96e18fcfbd0b8fb5f803b3a27e4e6 (patch) | |
| tree | 999e955a181d5b1a3c6bd62796b3b0bc899fc541 /arch/mips/boot/compressed/decompress.c | |
| parent | abbdc3d88aa2d5c937b21044c336bcd056c1732f (diff) | |
MIPS: Cleanup and Fixup of compressed kernel support
o Remove the .initrd section. The initrd section was already handled
when vmlinux was linked.
o Discard .MIPS.options, .options, .pdr, .reginfo, .comment and .note
sections. If .MIPS.options is not removed, kernels compiled with gcc
3.4.6 will not boot.
o Clean up the file format.
o Remove several other unneeded sections.
Tested with GCC 3.4.6 and 4.4.1 with and without initrd.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/785/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot/compressed/decompress.c')
| -rw-r--r-- | arch/mips/boot/compressed/decompress.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/mips/boot/compressed/decompress.c b/arch/mips/boot/compressed/decompress.c index 67330c2f7318..e48fd72898a8 100644 --- a/arch/mips/boot/compressed/decompress.c +++ b/arch/mips/boot/compressed/decompress.c | |||
| @@ -28,8 +28,6 @@ char *zimage_start; | |||
| 28 | 28 | ||
| 29 | /* The linker tells us where the image is. */ | 29 | /* The linker tells us where the image is. */ |
| 30 | extern unsigned char __image_begin, __image_end; | 30 | extern unsigned char __image_begin, __image_end; |
| 31 | extern unsigned char __ramdisk_begin, __ramdisk_end; | ||
| 32 | unsigned long initrd_size; | ||
| 33 | 31 | ||
| 34 | /* debug interfaces */ | 32 | /* debug interfaces */ |
| 35 | extern void puts(const char *s); | 33 | extern void puts(const char *s); |
| @@ -102,14 +100,6 @@ void decompress_kernel(unsigned long boot_heap_start) | |||
| 102 | puthex((unsigned long)(zimage_size + zimage_start)); | 100 | puthex((unsigned long)(zimage_size + zimage_start)); |
| 103 | puts("\n"); | 101 | puts("\n"); |
| 104 | 102 | ||
| 105 | if (initrd_size) { | ||
| 106 | puts("initrd at: "); | ||
| 107 | puthex((unsigned long)(&__ramdisk_begin)); | ||
| 108 | puts(" "); | ||
| 109 | puthex((unsigned long)(&__ramdisk_end)); | ||
| 110 | puts("\n"); | ||
| 111 | } | ||
| 112 | |||
| 113 | /* this area are prepared for mallocing when decompressing */ | 103 | /* this area are prepared for mallocing when decompressing */ |
| 114 | free_mem_ptr = boot_heap_start; | 104 | free_mem_ptr = boot_heap_start; |
| 115 | free_mem_end_ptr = boot_heap_start + BOOT_HEAP_SIZE; | 105 | free_mem_end_ptr = boot_heap_start + BOOT_HEAP_SIZE; |
