🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #491

Re: Bug in 'robotussin' - 'reloc reference to ignored symbol'

#491
From: James Van Artsdalen
Date: Sat, 22 Jul 1989 06:25
25 lines
1913 bytes
In <3553@altos86.Altos.COM>, dtynan@altos86.Altos.COM (Dermot Tynan) wrote:

> 1 altos86# ls -lF /lib/crt?.o
> -rw-rw-r--   1 bin      sys          496 Feb 12  1988 /lib/crt0.o
> -rw-rw-r--   1 bin      sys          604 Feb 12  1988 /lib/crt1.o
> -rw-rw-r--   1 bin      sys          364 Feb 12  1988 /lib/crtn.o
> 2 altos86# gnu robotussin /lib/crt0.o /usr/local/lib/gcc-crt0.o
> 3 altos86# gnu robotussin /lib/crt1.o /usr/local/lib/gcc-crt1.o
> robotussin: Oops! possible bug - reloc reference to ignored symbol
> 4 altos86# gnu robotussin /lib/crtn.o /usr/local/lib/gcc-crtn.o

robotussin doesn't handle the .init section in COFF files.  It doesn't
need to, because GNU ld doesn't handle shared libraries.  It appears
that the .init section is not used except by shared libraries.

> In the meantime, has anyone else seen this problem?  What is crt1.o used
> for, that isn't covered in 'crt0.o'.

crt1.o and crtn.o are required for using shared libraries.  crt0.o may
be used if you don't use shared libraries.  Since GNU ld doesn't handle
SysV shared libraries, there's no point in robotussining crt1.o or crtn.o.
Just use crt0.o.
-- 
James R. Van Artsdalen          james@bigtex.cactus.org   "Live Free or Die"
Dell Computer Co    9505 Arboretum Blvd Austin TX 78759         512-338-8789
Technical Details
Message-ID: <19239@bigtex.cactus.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!swbatl!texbell!cs.utexas.edu!milano!bigtex!james
References: <3553@altos86.Altos.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!swbatl!texbell!cs.utexas.edu!milano!bigtex!james
From: james@bigtex.cactus.org (James Van Artsdalen)
Newsgroups: gnu.gcc.bug
Subject: Re: Bug in 'robotussin' - 'reloc reference to ignored symbol'
Summary: Not a bug
Keywords: gcc, robotussin, USG, Altos
Message-ID: <19239@bigtex.cactus.org>
Date: 22 Jul 89 06:25:26 GMT
References: <3553@altos86.Altos.COM>
Reply-To: james@bigtex.cactus.org (James Van Artsdalen)
Organization: Institute of Applied Cosmology, Austin TX
Lines: 25