This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ATTRIBUTE_WEAK
- To: oliva at dcc dot unicamp dot br (Alexandre Oliva)
- Subject: Re: ATTRIBUTE_WEAK
- From: hjl at lucon dot org (H.J. Lu)
- Date: Wed, 24 Feb 1999 13:34:03 -0800 (PST)
- Cc: law at cygnus dot com, egcs at egcs dot cygnus dot com
>
> On Feb 24, 1999, hjl@lucon.org (H.J. Lu) wrote:
>
> > #pragma weak foo
> > extern void foo ();
>
> > Can __attribute__ do it?
>
> AFAIK, weak applies only to definitions, not to external references.
That is not true. The weak external reference is in the SVR4 ABI.
> What do you mean with a weak external reference, after all?
>
Yes. That is how my patch works.
--
H.J. Lu (hjl@gnu.org)