This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problem with linking
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: "Andrea 'fwyzard' Bocci" <fwyzard at inwind dot it>
- Cc: "EM Suijker" <suijker at fel dot tno dot nl>, gcc-help at gcc dot gnu dot org
- Date: 31 Dec 2002 07:08:37 -0800
- Subject: Re: problem with linking
- References: <5.2.0.9.2.20021230162219.01f3fbc8@popmail.libero.it>
- Reply-to: gcc-help at gcc dot gnu dot org
"Andrea 'fwyzard' Bocci" <fwyzard@inwind.it> writes:
> At 16.05 30/12/2002 +0100, EM Suijker wrote:
> >Dear Mr./Madam,
> >
> >Can you help me with the following problem. When I use the command: "
> >g++ -v -shared ....", I see that collect2 also sets the option "-z
> >text". I would like to set this option to "-z textoff" as is the default
> >for dynamic shared libraries with ld. Can you tell me how to do this? I
> >cannot find the solution in the manual pages. Thank you in advance.
>
> IIRC, there is an option to pass to GCC to specify options to be
> passed to the linker. You ca use those, to override "-z text" w/ "-z
> textoff".
almost. '-Wl,-z textoff'
I believe the quotes are necessary.
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Link-Options.html#Link%20Options
> Have a llok at the GCC manual, I don't remember the option.
>
> BTW, I don't know if what I'm saying is sane to do or not...
It's quite sane.