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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-06-13 17:38:37 
UTC ---
I think it has been fixed:

[hjl@gnu-6 pr12882]$ cat x.c
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;
}
[hjl@gnu-6 pr12882]$ make
gcc  -m32 -fPIE -O   -c -o x.o x.c
gcc  -m32 -pie -o x x.o
./x
[hjl@gnu-6 pr12882]$ 

Please try the Linux binutils 2.21.52.0.2:

http://www.kernel.org/pub/linux/devel/binutils/

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

Reply via email to