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] PR ld/19636: [x86] Resolve undefweak and defined symbols in executable


On Wed, Mar 02, 2016 at 01:24:18PM +0000, Jiong Wang wrote:
> While reading from http://www.skyfree.org/linux/references/ELF_Format.pdf,

"This document is intended for developers who are creating object or
executable files on various 32-bit environment operating systems."

According to the document overview you shouldn't even be using it for
64-bit architectures!  ;-)

>   "The link editor does not extract archive members to resolve undefined
>   weak symbols. Unresolved weak symbols have a zero value."
> 
> Looks to me the spec is even more strict that weak symbol's life is defined
> to be ended
> after static linking stage. All unresolved weak symbols are assigned zero
> value.

The section you quote is specifically about static linking.  You
shouldn't presume too much from the above regarding dynamic linking
and loading.

-- 
Alan Modra
Australia Development Lab, IBM


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