Subject: Re: CVS commit: src/lib/csu/i386_elf
To: David Laight <david@l8s.co.uk>
From: Jason Thorpe <thorpej@shagadelic.org>
List: source-changes
Date: 05/17/2006 14:14:38
On May 17, 2006, at 2:07 PM, David Laight wrote:

> Why not:
> #if __GNUC_PREREQ__(4, 0)
> #define __weak_reference(t, n) extern t n __attribute__((__weakref__))
> #else
> #define __weak_reference(t, n) extern t n; __asm(".weak  
> "_C_LABEL_STRING(#n))
> #endif
>
> so the code just becomes:
>
> __weak_reference(int, _DYNAMIC);
>
> (Or does this cause too much grief with weak functions?)

Way too much weak function grief.


-- thorpej