Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4041358
  • 博文数量: 366
  • 博客积分: 9916
  • 博客等级: 中将
  • 技术积分: 7195
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-29 23:27
个人简介

简单!

文章分类

全部博文(366)

文章存档

2013年(51)

2012年(269)

2011年(46)

分类: LINUX

2011-05-29 23:32:58

利用makefile和lds编译自己的程序的时候,出现了以下的问题:

make[1]: Leaving directory `/home/txgcwm/weidongshan/arm_sources/code/lib'
/home/txgcwm/weidongshan/arm_sources/code/obj/init.o(.text+0x0): In function `disable_watch_dog':
: multiple definition of `disable_watch_dog'
obj/init.o(.text+0x0): first defined here
/home/txgcwm/weidongshan/arm_sources/code/obj/init.o(.text+0x10): In function `clock_init':
: multiple definition of `clock_init'
obj/init.o(.text+0x10): first defined here
/home/txgcwm/weidongshan/arm_sources/code/obj/init.o(.text+0x78): In function `memsetup':
: multiple definition of `memsetup'
obj/init.o(.text+0x78): first defined here
/home/txgcwm/weidongshan/arm_sources/code/obj/init.o(.text+0xe4): In function `copy_steppingstone_to_sdram':
: multiple definition of `copy_steppingstone_to_sdram'
obj/init.o(.text+0xe4): first defined here
/home/txgcwm/weidongshan/arm_sources/code/obj/init.o(.text+0x108): In function `init_irq':
: multiple definition of `init_irq'
obj/init.o(.text+0x108): first defined here
/home/txgcwm/weidongshan/arm_sources/code/obj/nand.o(.text+0x240): In function `nand_init':
: multiple definition of `nand_init'
obj/nand.o(.text+0x240): first defined here
/home/txgcwm/weidongshan/arm_sources/code/obj/nand.o(.text+0x374): In function `nand_read':
: multiple definition of `nand_read'
obj/nand.o(.text+0x374): first defined here
/home/txgcwm/weidongshan/arm_sources/code/obj/2440start.o(.text+0x0): In function `_start':
: multiple definition of `_start'
obj/2440start.o(.text+0x0): first defined here
/home/txgcwm/weidongshan/arm_sources/code/obj/2440start.o(.text+0x24): In function `Reset':
: relocation truncated to fit: R_ARM_PC24 disable_watch_dog
/home/txgcwm/weidongshan/arm_sources/code/obj/2440start.o(.text+0x28): In function `Reset':
: relocation truncated to fit: R_ARM_PC24 clock_init
/home/txgcwm/weidongshan/arm_sources/code/obj/2440start.o(.text+0x2c): In function `Reset':
: relocation truncated to fit: R_ARM_PC24 memsetup
/home/txgcwm/weidongshan/arm_sources/code/obj/2440start.o(.text+0x30): In function `Reset':
: relocation truncated to fit: R_ARM_PC24 copy_steppingstone_to_sdram
make: *** [rom.bin] 错误 1




产生错误的原因是lds中链接.o文件的路径写错误了。如果有朋友发现类似的错误,可以查看lds编写是否正确。
阅读(2621) | 评论(1) | 转发(0) |
0

上一篇:连接出错处理

下一篇:中断体系结构

给主人留下些什么吧!~~

piaoliuzaiwai2011-05-29 23:49:14

踩踩