------- Additional Comments From hjl at lucon dot org  2006-07-06 17:40 -------
Here is the testcase:

[EMAIL PROTECTED] tls-20]$ cat x.c
#include <stdio.h>

static __thread char x [0x1ffff0];
static __thread char y;

void *
foo ()
{
  return &x;
}

void *
bar ()
{
  return &y;
}

int
main ()
{
  printf ("foo: %p\n", foo ());
  printf ("bar: %p\n", bar ());
  return 0;
}
[EMAIL PROTECTED] tls-20]$ gcc x.c
/tmp/ccKKUwVD.o: In function `bar':
x.c:(.text+0x22): relocation truncated to fit: TPREL22 against `y'
/usr/local/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
[EMAIL PROTECTED] tls-20]$

The IA64 local exec TLS mode has a 2MB limit. You have to change your code to
avoid it.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to