public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/17224] New: relocation truncated to fit: GPREL22
@ 2004-08-29  0:29 tege-gcc at swox dot com
  2004-08-29  0:34 ` [Bug target/17224] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: tege-gcc at swox dot com @ 2004-08-29  0:29 UTC (permalink / raw)
  To: gcc-bugs

Invalid code is generated for symbol+bigoffset.

Test case:
void *foo () { static int n; return &n - 89477598;}
main ()      { foo (); }

Compilation command end error:
gcc -Wa,-v -v -O3 foo.c
Reading specs from /usr/local/lib/gcc/ia64-unknown-linux-gnu/3.4.1/specs
Configured with: ../configure 
Thread model: posix
gcc version 3.4.1
 /usr/local/libexec/gcc/ia64-unknown-linux-gnu/3.4.1/cc1 -quiet -v foo.c -quiet
-dumpbase foo.c -auxbase foo -O3 -version -o /tmp/cc0nLAzc.s
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/ia64-unknown-linux-gnu/3.4.1/../../../../ia64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/lib/gcc/ia64-unknown-linux-gnu/3.4.1/include
 /usr/include
End of search list.
GNU C version 3.4.1 (ia64-unknown-linux-gnu)
        compiled by GNU C version 3.4.1.
GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=16384
 as -x -v -o /tmp/ccWqLDKj.o /tmp/cc0nLAzc.s
GNU assembler version 2.12.90.0.1 (ia64-linux) using BFD version 2.12.90.0.1
20020307 Debian/GNU Linux
 /usr/local/libexec/gcc/ia64-unknown-linux-gnu/3.4.1/collect2 -dynamic-linker
/lib/ld-linux-ia64.so.2 /usr/lib/crt1.o /usr/lib/crti.o
/usr/local/lib/gcc/ia64-unknown-linux-gnu/3.4.1/crtbegin.o
-L/usr/local/lib/gcc/ia64-unknown-linux-gnu/3.4.1
-L/usr/local/lib/gcc/ia64-unknown-linux-gnu/3.4.1/../../.. /tmp/ccWqLDKj.o -lgcc
-lgcc_eh -lc -lgcc -lgcc_eh
/usr/local/lib/gcc/ia64-unknown-linux-gnu/3.4.1/crtend.o /usr/lib/crtn.o
/tmp/ccWqLDKj.o: In function `foo':
/tmp/ccWqLDKj.o(.text+0x1): relocation truncated to fit: GPREL22 .text
collect2: ld returned 1 exit status

-- 
           Summary: relocation truncated to fit: GPREL22
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tege-gcc at swox dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: ia64-unknown-linux-gnu
  GCC host triplet: ia64-unknown-linux-gnu
GCC target triplet: ia64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17224


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2004-11-29 23:17 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-29  0:29 [Bug target/17224] New: relocation truncated to fit: GPREL22 tege-gcc at swox dot com
2004-08-29  0:34 ` [Bug target/17224] " pinskia at gcc dot gnu dot org
2004-08-29  0:38 ` tege-gcc at swox dot com
2004-08-29  0:46 ` pinskia at gcc dot gnu dot org
2004-08-29  1:08 ` tege-gcc at swox dot com
2004-08-29  1:15 ` pinskia at gcc dot gnu dot org
2004-08-29  9:32 ` jsm at polyomino dot org dot uk
2004-08-29 16:49 ` pinskia at gcc dot gnu dot org
2004-10-16 19:31 ` [Bug target/17224] [3.4/4.0 Regression]: " hjl at lucon dot org
2004-10-16 19:33 ` pinskia at gcc dot gnu dot org
2004-11-01  0:42 ` mmitchel at gcc dot gnu dot org
2004-11-27  2:05 ` neroden at gcc dot gnu dot org
2004-11-28  2:58 ` hjl at lucon dot org
2004-11-28  5:57 ` rth at gcc dot gnu dot org
2004-11-29 18:43 ` cvs-commit at gcc dot gnu dot org
2004-11-29 19:19 ` cvs-commit at gcc dot gnu dot org
2004-11-29 19:20 ` rth at gcc dot gnu dot org
2004-11-29 23:17 ` schwab at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).