[PATCH] PR ld/19636: [x86] Resolve undefweak and defined symbols in executable
Alan Modra
amodra@gmail.com
Thu Mar 3 02:54:00 GMT 2016
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
More information about the Binutils
mailing list