This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/33755] Gcc 4.2.2 broken for mips linux kernel builds
- From: "daney at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2007 22:35:09 -0000
- Subject: [Bug target/33755] Gcc 4.2.2 broken for mips linux kernel builds
- References: <bug-33755-7151@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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