This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: What is the deal with gcc and shared libs?
- To: help-gcc at gnu dot org
- Subject: Re: What is the deal with gcc and shared libs?
- From: Arthur Gold <agold at bga dot com>
- Date: Sat, 06 Nov 1999 23:39:53 -0600
- Newsgroups: gnu.gcc.help
- References: <38250835.4E1D2BF7@cam.org>
- Xref: wodc7nx0 gnu.gcc.help:1710
Important question: what version of `ld' are you using?
I seem to remember some potential problems in using gcc and Sun ld.
Perhaps this is a clue?
HTH,
--ag
[BTW, in general the rule is "post here, READ here"...]
"Justin F. Knotzke" wrote:
>
> Hi,
>
> I have checked high and low on this and everyone seems to point to
> the -fPIC compiler flag as a fix to:
>
> ld: fatal: relocations remain against allocatable but non-writable
> sections
> collect2: ld returned 1 exit status
>
> I am running gcc-2.95.2 built from scratch on a Solaris 7 box. I have
> tried compiling and install three separate versions of gcc all with the
> same results. The -fPIC does not fix this problem for me.
>
> Is gcc broken in creating .so's under Solaris because I can create
> then without problem under Linux.
>
>
> Thanks
>
> Justin Knotzke.
>
> p.s please email any responses.
--
Artie Gold, Austin, TX
mailto:agold@bga.com or mailto:agold@cs.utexas.edu
--
"If you come to a fork in the road, take it." L. P. Berra