This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]