bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/20805] gcc's ThreadSanitizer broken by gold


From: markus at trippelsdorf dot de
Subject: [Bug gold/20805] gcc's ThreadSanitizer broken by gold
Date: Sat, 12 Nov 2016 09:20:56 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20805

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #9624|0                           |1
        is obsolete|                            |

--- Comment #3 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
Created attachment 9626
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9626&action=edit
new testcase

Here's a better testcase:

gcc -fuse-ld=bfd -shared tsan_rtl.o tsan_interceptors.o tsan_rtl_amd64.o
vs.
gcc -fuse-ld=gold -shared tsan_rtl.o tsan_interceptors.o tsan_rtl_amd64.o

Look at the disassembly of function _ZN6__tsan10InitializeEPNS_11ThreadStateE.

bfd: 
    cur_thread()->ignore_interceptors++;                                        
   2d4a3:       48 03 05 ce 67 25 00    add    0x2567ce(%rip),%rax        #
283c78 <.got+0x1780> 

gold:
    cur_thread()->ignore_interceptors++;                                        
   2ed42:       66 66 48 e8 36 e4 ff    data16 data16 callq 2d180
<address@hidden>

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]