[Bug target/33755] Gcc 4.2.2 broken for mips linux kernel builds

daney at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 12 22:35:00 GMT 2007



------- 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)ddaney@swarm:~/junk$ gcc -c -O2 -G0 -mno-abicalls -march=mips32r2 33755.i 
(sid)ddaney@swarm:~/junk$ ld -m elf32ltsmip -r 33755.o
(sid)ddaney@swarm:~/junk$ gcc --version
gcc (GCC) 4.3.0 20071011 (experimental) [trunk revision 129239]


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33755



More information about the Gcc-bugs mailing list