This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Relocation errors on SCO


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.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]