bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/2869] IA64: relocation truncated to fit: TPREL22


From: hjl at lucon dot org
Subject: [Bug ld/2869] IA64: relocation truncated to fit: TPREL22
Date: 6 Jul 2006 17:40:03 -0000

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

address@hidden 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;
}
address@hidden 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
address@hidden 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.




reply via email to

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