From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13926 invoked by alias); 2 Jan 2003 00:33:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 13919 invoked from network); 2 Jan 2003 00:33:28 -0000 Received: from unknown (HELO smtp0.euronet.nl) (194.134.35.141) by 209.249.29.67 with SMTP; 2 Jan 2003 00:33:28 -0000 Received: from koffie.nl (rot2-p2360.dial.wanadoo.nl [194.134.139.56]) by smtp0.euronet.nl (Postfix) with ESMTP id D405624622; Thu, 2 Jan 2003 01:33:09 +0100 (MET) Message-ID: <3E112C7F.258186D@koffie.nl> Date: Thu, 02 Jan 2003 00:33:00 -0000 From: Segher Boessenkool X-Accept-Language: en MIME-Version: 1.0 To: Andrea 'fwyzard' Bocci Cc: EM Suijker , gcc-help@gcc.gnu.org Subject: Re: problem with linking References: <5.2.0.9.2.20021230162219.01f3fbc8@popmail.libero.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00005.txt.bz2 Andrea 'fwyzard' Bocci wrote: > > 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". > Have a llok at the GCC manual, I don't remember the option. I think you mean -Wl,-z,textoff > BTW, I don't know if what I'm saying is sane to do or not... I have no idea if this will help Mr. Suijker, either. Segher