Date: Wed, 18 Apr 2012 14:16:25 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: Konstantin Belousov <kostikbel@gmail.com> Cc: freebsd-hackers@FreeBSD.org Subject: Re: weak symbols vs archive libraries Message-ID: <4F8EA289.1050000@FreeBSD.org> In-Reply-To: <20120418104955.GV2358@deviant.kiev.zoral.com.ua> References: <4F8E992A.2090705@FreeBSD.org> <20120418104955.GV2358@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F8EA289.1050000>