<br />http://forums.arm.com/lofiversion/index.php/t4282.html<br />http://gcc.gnu.org/ml/gcc-bugs/2003-06/msg01719.html<br />http://gcc.gnu.org/ml/gcc-prs/2002-06/msg00327.html<br /><br />大致都有这么提到:<br />The same files compiled with arm-elf-gcc 3.0.4 work perfectly.<br />the same files compiled with arm-linux-gcc 2.95.5 work perfectly<br /><br />产生的原因有:<br />>How-To-Repeat:<br />某些版本的GCC编译器<br />Compile any file with "-g" option using arm-elf-gcc<br /><br />所以比较合适的方法是,用低版本的编译器。比如2.95.5等等。<br />假设2.95.5解压在/usr/local/arm/2.95.5,那么可修改Makefile:<br />CROSS_COMPILE = /usr/local/arm/2.95.5/bin/arm-linux-gcc<br /><br />注:偶只是大致列举,具体修改,请参照具体的Makefile修改(类似)。
|