This is the mail archive of the gcc@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: ATTRIBUTE_WEAK


> 
> 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)


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