weak symbols vs archive libraries
Andriy Gapon
avg at FreeBSD.org
Wed Apr 18 11:16:29 UTC 2012
on 18/04/2012 13:49 Konstantin Belousov said the following:
> This is from the ELF standard version 1.2 PDF, page 1-5:
>
> When the link editor searches archive libraries, it extracts archive
> members that contain definitions of undefined global symbols. The member's
> definition may be either a global or a weak symbol. The link editor does
> not extract archive members to resolve undefined weak symbols. Unresolved
> weak symbols have a zero value.
I'll just add to this, in case it's not already very obvious, that the link
editor does not extract archive members to find strong definitions for defined
weak symbols too.
Thank you for the quote!
--
Andriy Gapon
More information about the freebsd-hackers
mailing list