Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2775925
  • 博文数量: 505
  • 博客积分: 1552
  • 博客等级: 上尉
  • 技术积分: 2514
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-23 18:24
文章分类

全部博文(505)

文章存档

2019年(12)

2018年(15)

2017年(1)

2016年(17)

2015年(14)

2014年(93)

2013年(233)

2012年(108)

2011年(1)

2009年(11)

分类: LINUX

2012-12-10 10:43:23

用mipsel-linux-gcc编译出现错误:
(.text+0xa4): relocation truncated to fit: R_MIPS_GOT16 against `no symbol'
start.o: In function `IntHandle':
(.text+0xd0): relocation truncated to fit: R_MIPS_GOT16 against `no symbol'
start.o: In function `IntHandle':
(.text+0x118): relocation truncated to fit: R_MIPS_GOT16 against `no symbol'
start.o: In function `IntHandle':
(.text+0x138): relocation truncated to fit: R_MIPS_GOT16 against `no symbol'
start.o: In function `reset':
(.text+0x1d0): relocation truncated to fit: R_MIPS_GOT16 against `no symbol'
start.o: In function `reset':
(.text+0x1e4): relocation truncated to fit: R_MIPS_GOT16 against `no symbol'
start.o: In function `hexserial':
(.text+0x2c8): relocation truncated to fit: R_MIPS_GOT16 against `no symbol'
start.o: In function `PRINT_CP0':
(.text+0x2f8): relocation truncated to fit: R_MIPS_GOT16 against `no symbol'
start.o: In function `PRINT_CP0':
(.text+0x314): relocation truncated to fit: R_MIPS_GOT16 against `no symbol'
start.o: In function `PRINT_CP0':
(.text+0x324): relocation truncated to fit: R_MIPS_GOT16 against `no symbol'
start.o: In function `PRINT_CP0':
(.text+0x340): additional relocation overflows omitted from the output

修改Makefile的编译选项为:CFLAGS = -msingle-float -mips32 -Wa,-xgot -mno-abicalls -fno-pic即可

阅读(10121) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~