This is the mail archive of the gcc-help@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: What is the deal with gcc and shared libs?


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


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