红联Linux门户
Linux帮助

redhat编译2.6.22内核,执行make bzImage,在编译快完成的时候报错解决办法

发布时间:2008-03-26 16:17:13来源:红联作者:chaian
在arch/i386/Makefile里面做一些修改:

将OBJCOPYFLAGS改成如下的:

OBJCOPYFLAGS := -O binary --change-section-lma .bss-0xc0000000 -R .note -R .comment -S

然后重新make bzImage

OK。

KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
MODPOST vmlinux
WARNING: arch/i386/kernel/built-in.o(.exit.text+0x1b): Section mismatch: reference to .init.text: (between 'cache_remove_dev' and 'msr_exit')
WARNING: arch/i386/kernel/built-in.o(.data+0x2174): Section mismatch: reference to .init.text: (between 'thermal_throttle_cpu_notifier' and 'num_var_ranges')
WARNING: kernel/built-in.o(.text+0x15e79): Section mismatch: reference to .init.text: (between 'kthreadd' and 'init_waitqueue_head')
AS arch/i386/boot/bootsect.o
LD arch/i386/boot/bootsect
AS arch/i386/boot/setup.o
LD arch/i386/boot/setup
AS arch/i386/boot/compressed/head.o
CC arch/i386/boot/compressed/misc.o
include/asm/processor.h: In function `native_get_debugreg':
include/asm/processor.h:531: warning: asm operand 0 probably doesn't match constraints
include/asm/processor.h: In function `native_set_debugreg':
include/asm/processor.h:558: warning: asm operand 0 probably doesn't match constraints
OBJCOPY arch/i386/boot/compressed/vmlinux.bin
BFD: Warning: Writing section `.bss' to huge (ie negative) file offset 0xc0277000.
objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated
make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1
make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
make: *** [bzImage] Error 2
文章评论

共有 0 条评论