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:08:38 -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 #7 from daney at gcc dot gnu dot org 2007-10-12 22:08 -------
The reduced testcase is different than the reported problem. At a minimum the
relocation types are different. Also the kernel is compiled with -G 0
-mno-abicalls
If we compile the reduced testcase thusly:
(sid)ddaney@swarm:~/junk$ gcc-4.2 -c -O2 -G0 -mno-abicalls -march=mips32r2 j.c
(sid)ddaney@swarm:~/junk$ objdump -r j.o
j.o: file format elf32-tradlittlemips
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
00000068 R_MIPS_26 printk
00000024 R_MIPS_HI16 $LC0
0000006c R_MIPS_LO16 $LC0
0000007c R_MIPS_26 .text
(sid)ddaney@swarm:~/junk$ ld -m elf32ltsmip -r j.o
No errors.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33755