Linker version script turning weak symbols into strong symbols

Dave Korn dave.korn.cygwin@googlemail.com
Tue May 26 19:09:00 GMT 2009


Kevin P. Fleming wrote:
> Dave Korn wrote:
> 
>>   Or just define a coding convention that you're going to use a standard
>> prefix for all functions that need this treatment?
> 
> We could do that, but it'd put parts of the API into a different
> namespace, so I'd rather 'hide' it behind macros if possible.
> 

  Well, it may be that there's a way to do what you want that I don't know
about.  Given that you're relying on ELF behaviour already for this, maybe
symbol visibility tricks can do what you need, but that's not something I
could answer.

    cheers,
      DaveK



More information about the Binutils mailing list