+ -
当前位置:首页 → 问答吧 → kernel 编译问题

kernel 编译问题

时间:2005-09-22

来源:互联网

<TABLE style="TABLE-LAYOUT: fixed" height=120 cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR vAlign=top><TD style="WORD-WRAP: break-word; 130: ">请问有人碰到这种问题吗?
mips-linux-elf-objcopy -O binary -R .note -R .comment -S /home/cii/jyk/linux_new
/vmlinux zImage
BFD: Warning: Writing section `.text.init' to huge (ie negative) file offset 0x8
1000000.
BFD: Warning: Writing section `.data.init' to huge (ie negative) file offset 0x8
100dbd8.
BFD: Warning: Writing section `.setup.init' to huge (ie negative) file offset 0x
8100e340.
BFD: Warning: Writing section `.initcall.init' to huge (ie negative) file offset
0x8100e3e8.
BFD: Warning: Writing section `.text' to huge (ie negative) file offset 0x8100f0
00.
BFD: Warning: Writing section `.fixup' to huge (ie negative) file offset 0x81133
194.
BFD: Warning: Writing section `.kstrtab' to huge (ie negative) file offset 0x811
34600.
BFD: Warning: Writing section `__ex_table' to huge (ie negative) file offset 0x8
1137e70.
BFD: Warning: Writing section `__ksymtab' to huge (ie negative) file offset 0x81
139848.
BFD: Warning: Writing section `.data.init_task' to huge (ie negative) file offse
t 0x8113c000.
BFD: Warning: Writing section `.data.cacheline_aligned' to huge (ie negative) fi
le offset 0x8113e000.
BFD: Warning: Writing section `.data' to huge (ie negative) file offset 0x8113f0
00.
mips-linux-elf-objcopy: zImage: File truncated
make: *** [zImage] Error 1
怎么解决啊:( 我用GCC3.2.2编译压缩都没有问题,可是在班子上回引起奇怪的问题(都是在汇编中程序就不走了),想起以前UBOOT的类似问题也是GCC版本引起的,所以换了一个GCC3.4.4,调试编译成功后压缩就出现上面的问题了。。



</TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD>
</TD></TR></TBODY></TABLE>      

作者: pkujetjiang   发布时间: 2005-09-22

你的binutils和gcc配套么      

作者: 魔芋   发布时间: 2005-09-23