* Martin Michlmayr <tbm@xxxxxxxxxx> [2007-10-12 21:14]: > Okay, I can see it. I'll submit a testcase. I submitted the following: (sid)335:tbm@swarm: ~] gcc-4.2 -c -march=mips32r2 -O2 pr33755.c (sid)336:tbm@swarm: ~] ld -m elf32ltsmip -r pr33755.o ld: pr33755.o: Can't find matching LO16 reloc against `$LC0' for R_MIPS_GOT16 at 0x521490 in section `.text' (sid)337:tbm@swarm: ~] cat pr33755.c struct mtd_blktrans_ops { int (*readsect) (void); int exiting; }; static void do_blktrans_request (struct mtd_blktrans_ops *tr, long flags) { switch (flags & 1) { case 0: if (tr->readsect ()) return; case 1: return; default: printk ("foo\n"); } } mtd_blktrans_thread (struct mtd_blktrans_ops *tr) { long flags; while (!tr->exiting) do_blktrans_request (tr, flags); } -- Martin Michlmayr http://www.cyrius.com/