------- 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)[EMAIL PROTECTED]:~/junk$ gcc-4.2 -c -O2 -G0 -mno-abicalls -march=mips32r2 j.c (sid)[EMAIL PROTECTED]:~/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)[EMAIL PROTECTED]:~/junk$ ld -m elf32ltsmip -r j.o No errors. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33755