http://sourceware.org/bugzilla/show_bug.cgi?id=13301
Bug #: 13301 Summary: Wrong linker relaxation for TLS_LDM_CALL and TLS_GD_CALL on SPARC Product: binutils Version: 2.23 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sourceware.org ReportedBy: ebotca...@gcc.gnu.org Classification: Unclassified This is the miscompilation of MPFR 3.1.0 on SPARC/Linux, initially filed as http://gcc.gnu.org/PR50683 The compiler generates at -O2 -fPIC: add %l7, %l3, %l3, %tgd_add(__gmpfr_flags) [...] call __tls_get_addr, %tgd_call(__gmpfr_flags) mov %l3, %o0 ld [%o0], %g1 and the linker turns this into: 0x00014d14 <+504>: add %g7, %o0, %o0 0x00014d18 <+508>: mov %l3, %o0 0x00014d1c <+512>: ld [ %o0 ], %g1 so segfault on the load. Both TLS_LDM_CALL and TLS_GD_CALL are affected. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils