relocation truncated to fit: R_ARM_CALL against symbol问题

标签:
armit |
问题描述:
为arm9 也即飞凌2440开发板编写的代码在arm-linux-gcc编译器中编译报错为:relocation truncated to fit: R_ARM_CALL against symbol
解决办法:
1、makefile文件中cflags:加入-mlong-calls,效果不行,一样报一样的错。
2、将新加入的函数的参数原来是0xff0000,改为0x00,不报错,编译出现bin文件
后续问题:如果需要大地址怎么办?
先上一张解决这个局部问题的图:
http://s7/mw690/500bd63ctd14a79f549a6&690truncated