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: dvyukov at google dot com
Subject: [Bug gold/20805] gcc's ThreadSanitizer broken by gold
Date: Fri, 11 Nov 2016 21:38:08 +0000

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

Dmitry Vyukov <dvyukov at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dvyukov at google dot com

--- Comment #1 from Dmitry Vyukov <dvyukov at google dot com> ---
ld.bfd compiles access to the initial-exec tls variable:

   6da8a:       64 48 8b 04 25 00 00    mov    %fs:0x0,%rax
   6da93:       48 03 05 fe 9e 26 00    add    0x269efe(%rip),%rax
   6daa8:       83 80 98 02 02 00 01    addl   $0x1,0x20298(%rax)

which looks correct.

while gold compiles it to:

   6effa:       66 48 8d 3d 66 cf 06    data16 lea 0x6cf66(%rip),%rdi        #
dbf68 <_ZN6__tsan22cur_thread_placeholderE@@Base+0xdbf28>                       
   6f001:       00                                                              
    cur_thread()->ignore_interceptors++;                                        
   6f002:       66 66 48 e8 16 3d fb    data16 data16 callq 22d20
<address@hidden>              


Markus, what version of gold do you have? Maybe it is old?

-- 
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]