Re: Link Error

From: George (greerga@CIRCLEMUD.ORG)
Date: 10/19/98


On Sun, 18 Oct 1998, James Thomas wrote:

>Machine : alpha-233
>CircleV : bpl11
>GCC     : 2.7.2.1
>GCC flag: gcc -c -g -Wall -fno-strict-prototypes
>
>Error   :
>/usr/lib/crtend.o: In function `__do_global_ctors_aux':
>../sysdeps/alpha/elf/crtend.S:73: relocation truncated to fit: LITERAL
>__CTOR_END__
>../sysdeps/alpha/elf/crtend.S:73: relocation truncated to fit: LITERAL
>__do_global_ctors_aux
>ss.parser.o: In function `do_staff':
>/home/rasdan/fin/src/ss.parser.c:410: relocation truncated to fit: LITERAL
>$C70
>[TONS MORE OF THESE]
>/usr/lib/libc.a(stat.o): In function `__stat':
>stat.c(.text+0x20): relocation truncated to fit: LITERAL __xstat
>make[1]: *** [../bin/circle] Error 1
>make[1]: Leaving directory `/home/rasdan/fin/src'

Is that the GNU ld or the system linker? (Digital UNIX assuming you don't
have Alpha Linux on it.)

If it's the DU one, you might want to try the GNU linker instead.
Otherwise I'd say upgrade to egcs 1.1 or gcc 2.8.1 anyway.   You'll get
better code, more available warnings, and maybe it'll work better.

(Looks like Linux Libc 2 above.)

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST