This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: weak and alias
- From: Terje Eggestad <terje dot eggestad at scali dot com>
- To: gcc at gcc dot gnu dot org
- Date: 11 Mar 2003 10:16:39 +0100
- Subject: Re: weak and alias
- Organization: Scali AS
- References: <1047371162.26856.35.camel@pc-16.office.scali.no>
Never mind, 2.x didn't require the weak symbol to be declared, nor the
strong symbol to be initialized.
On Tue, 2003-03-11 at 09:26, Terje Eggestad wrote:
> In gcc 2.X the pragma
>
> #pragma weak aliasname = realname
> worked both for functions, and variables.
>
> In gcc 3.2.x the pragma no longer seem to work, and you can't alias a
> variable with __attribute__.
> Is there anyway to re-enable the old pragma functionality?
>
> Terje
--
_________________________________________________________________________
Terje Eggestad mailto:terje dot eggestad at scali dot no
Scali Scalable Linux Systems http://www.scali.com
Olaf Helsets Vei 6 tel: +47 22 62 89 61 (OFFICE)
P.O.Box 150, Oppsal +47 975 31 574 (MOBILE)
N-0619 Oslo fax: +47 22 62 89 51
NORWAY
_________________________________________________________________________