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: hjl.tools at gmail dot com
Subject: [Bug ld/12882] Wrong @dtpoff relocation with -pie
Date: Mon, 13 Jun 2011 17:39:09 +0000

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:

address@hidden 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;
}
address@hidden pr12882]$ make
gcc  -m32 -fPIE -O   -c -o x.o x.c
gcc  -m32 -pie -o x x.o
./x
address@hidden 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.



reply via email to

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