bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/12882] Wrong @dtpoff relocation with -pie


From: ubizjak at gmail dot com
Subject: [Bug ld/12882] Wrong @dtpoff relocation with -pie
Date: Mon, 13 Jun 2011 17:15:27 +0000

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

--- Comment #1 from Uros Bizjak <ubizjak at gmail dot com> 2011-06-13 17:15:11 
UTC ---
C source to illustrate the problem:

--cut here--
extern void abort (void);

__thread int tls_ld __attribute__((tls_model("local-dynamic"))) = 1;
__thread int tls_ld2 __attribute__((tls_model("local-dynamic"))) = 2;

int
__attribute__((noinline)) get_ld (void)
{
  return tls_ld + tls_ld2;
}


int main (void)
{
  int val;

  val = get_ld ();
  if (val != 1 + 2)
    abort ();

  return 0;
}
--cut here--

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