This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFC] Fix LD test FAIL: weak symbols on Cygwin


2009/3/20 Dave Korn <dave.korn.cygwin@googlemail.com>:
> Kai Tietz wrote:
>
>>
>> Yes, it's true what Vincent found. But there is a documention about
>> this in pecoff_v8.doc. See section "29 Auxiliary Format 3: Weak
>> Externals". I think this is the best point to start from.
>
>
> ?Yes, that's my starting point of course, but it's not enough on its own. ?It
> doesn't really explain the IMAGE_WEAK_EXTERN_SEARCH* semantics very clearly.
>
> ? ?cheers,
> ? ? ?DaveK
>

Ok, as far as I could find out is
IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY has nearly the same meaning as weak
symbols are described in SVR4 ABI (page 4-27). An undefined weak
symbol is not considered to be a reference when pulling files out of
an archive.
IMAGE_WEAK_EXTERN_SEARCH_LIBRARY means something like this. An
undefined weak symbol is considered to be a reference when pulling
files out of an archive. (or as pecoff spec says: "indicates that a
library search for sym1 should be performed."

Maybe I am wrong by that.

Cheers,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


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