bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/13476] New: Incorrect TLS relocations created in DSOs on h


From: skrll at netbsd dot org
Subject: [Bug binutils/13476] New: Incorrect TLS relocations created in DSOs on hppa
Date: Wed, 07 Dec 2011 13:29:58 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13476

             Bug #: 13476
           Summary: Incorrect TLS relocations created in DSOs on hppa
           Product: binutils
           Version: 2.23 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


Created attachment 6092
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6092
Example code for DSO

This commit

http://sourceware.org/ml/binutils/2010-01/msg00594.html

now means that calls to __tls_get_addr are incorrect as the relocation is no
longer adjusted to be relative to the GOT.

Looking at the final link object from, e.g.

    cc -c -O2 -fPIC -o h_tls.o h_tls.c
    cc -shared -o dso.so h_tls.o

note the addil/ldo sequence is beyond the GOT.

000004f4 <testf>:
 4f4:   6b c2 3f d9     stw rp,-14(sp)
 4f8:   6f c4 01 00     stw,ma r4,80(sp)
 4fc:   6b c3 3f 09     stw r3,-7c(sp)
 500:   08 1a 02 43     copy r26,r3
 504:   2a 60 20 00     addil L%1000,r19,r1
 508:   34 3a 00 70     ldo 38(r1),r26

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



reply via email to

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