Chinaunix首页 | 论坛 | 博客
  • 博客访问: 97243
  • 博文数量: 17
  • 博客积分: 1512
  • 博客等级: 上尉
  • 技术积分: 170
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-29 03:09
文章分类

全部博文(17)

文章存档

2010年(3)

2009年(1)

2008年(13)

我的朋友

分类: LINUX

2008-03-26 13:47:26

....
  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
 
解决办法:
在arch/i386/Makefile里面做一些修改:
将OBJCOPYFLAGS改成如下的:
OBJCOPYFLAGS := -O binary --change-section-lma .bss-0xc0000000 -R .note -R .comment -S
然后重新make bzImage     OK!
 
阅读(2382) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~