This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Relocation errors on SCO
- To: Theo Petersen <theo at acsp dot com>, egcs at cygnus dot com
- Subject: Re: Relocation errors on SCO
- From: Robert Lipe <robertl at dgii dot com>
- Date: Thu, 15 Oct 1998 09:48:14 -0500
- References: <36253AC4.794B@acsp.com>
Theo Petersen wrote:
> I'm building a shared library on SCO 3.2v5.0.4 and get:
>
> relocations referenced
> from file(s)
> /usr/local/lib/libm.a(pow.ou)
> /usr/local/lib/libm.a(floor.ou)
[ munch ]
> /usr/ccs/lib/libc.so(bcopy.o)
> /usr/ccs/lib/libc.so(realpath.o)
> fatal error: relocations remain against allocatable but non-writable
> section: .text
This is typical of what you'll get when you mix COFF and ELF objects.
/usr/local/lib/libm.a isn't part of the system compiler, it's part of
icc. EGCS emits ELF by default while icc emit coff by default. You
almost certainly shouldn't be using icc's libs with egcs. You need to
determine why your system (egcs isn't doing this by default, I'm pretty
sure) is using that library.
If the problem isn't self-evident, submit a self-contained testcase,
please.