https://llvm.org/bugs/show_bug.cgi?id=24286
David Chisnall <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #2 from David Chisnall <[email protected]> --- This looks like a bug in the input code. The relocation is caused by this inline assembly: jal __do_global_dtors_aux This is wrong for PIC, it should be: dla $t9, __do_global_dtors_aux jalr $t9 The assembly is instantiated from the macro CRT_CALL_STATIC_FUNCTION. This appears to come from contrib/gcc/config/mips/mips.h, which contains some wonderful things like '/* Switch to #elif when we're no longer limited by K&R C. */' and, though it does have O32 and N64 / N32 variants, it doesn't appear to be have a PIC variant. This code is sufficiently horrible that the correct fix probably involves napalm. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list [email protected] http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
