Relocation errors on SCO
Robert Lipe
robertl@dgii.com
Thu Oct 15 08:19:00 GMT 1998
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.
More information about the Gcc
mailing list