When linking a program that has a combination of thread local data that 
exceeds 2^21 in size (roughly 0x3e8500), the following link error occurs:

../src/upcr_gccupc.c:81: relocation truncated to fit: TPREL22 MYTHREAD

The variable being referred to is a single word that is relatively far from
the point of reference.

I've tried duplicating this by constructing some simple C files with large 
thread-local declarations, and references to data that should be far away, but 
was unable to make the failure happen.  I can collect the .o's and the ld 
command line that makes it fail, if needed, but there are 50 in total, so if 
there is another way to diagnose the problem or workaround it that would be 
preferred.

-- 
           Summary: IA64: relocation truncated to fit: TPREL22
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: gary at intrepid dot com
                CC: bug-binutils at gnu dot org
  GCC host triplet: ia64-unknown-linux-gnu


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