From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 18 11:16:29 2012 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D10C9106566C for ; Wed, 18 Apr 2012 11:16:29 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 27A7B8FC0C for ; Wed, 18 Apr 2012 11:16:28 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA10737; Wed, 18 Apr 2012 14:16:26 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1SKSs6-000M9k-Ez; Wed, 18 Apr 2012 14:16:26 +0300 Message-ID: <4F8EA289.1050000@FreeBSD.org> Date: Wed, 18 Apr 2012 14:16:25 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120317 Thunderbird/10.0.3 MIME-Version: 1.0 To: Konstantin Belousov References: <4F8E992A.2090705@FreeBSD.org> <20120418104955.GV2358@deviant.kiev.zoral.com.ua> In-Reply-To: <20120418104955.GV2358@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org Subject: Re: weak symbols vs archive libraries X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2012 11:16:29 -0000 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