用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) |