------- Comment #8 from daney at gcc dot gnu dot org 2007-10-12 22:35 ------- It appears to be a GCC bug not binutils:
If you look at the assembly output for gcc-4.2, we emit: lui $2,%hi($LC6) But there is no corresponding %lo($LC6) to be found. No amount of relocation sorting could overcome this problem. The corresponding printk calls are also missing. Very strange. This is fixed in 4.3. (sid)[EMAIL PROTECTED]:~/junk$ gcc -c -O2 -G0 -mno-abicalls -march=mips32r2 33755.i (sid)[EMAIL PROTECTED]:~/junk$ ld -m elf32ltsmip -r 33755.o (sid)[EMAIL PROTECTED]:~/junk$ gcc --version gcc (GCC) 4.3.0 20071011 (experimental) [trunk revision 129239] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33755