From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2447 Path: news.gmane.org!not-for-mail From: Rob Landley Newsgroups: gmane.linux.lib.musl.general Subject: Re: static linking and dlopen Date: Sun, 09 Dec 2012 14:09:23 -0600 Message-ID: <1355083763.9353.2@driftwood> References: <20121208225237.GV20323@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1355083780 30501 80.91.229.3 (9 Dec 2012 20:09:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2012 20:09:40 +0000 (UTC) Cc: musl@lists.openwall.com To: musl@lists.openwall.com Original-X-From: musl-return-2448-gllmg-musl=m.gmane.org@lists.openwall.com Sun Dec 09 21:09:54 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ThnCD-0006Wi-Ts for gllmg-musl@plane.gmane.org; Sun, 09 Dec 2012 21:09:54 +0100 Original-Received: (qmail 11769 invoked by uid 550); 9 Dec 2012 20:09:41 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11761 invoked from network); 9 Dec 2012 20:09:41 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:subject:to:cc:references:in-reply-to:x-mailer:message-id :mime-version:content-type:content-disposition :content-transfer-encoding:x-gm-message-state; bh=bO5rZziCNIv/W/ChXCxZuvm5LcxcZwJITzlNIA2ZBZU=; b=hs2KpXokL0+mLlpl3ON3qvHt2heGZtvtGe5ZYwkqfbw6NXYClz69ZFxmvPaTAfA9av sKxPCoe4s1vkxdVs+TaCkOtgaHfmYU4T0diiDWqkBU2kRE/fxjV9RiN5ZJnaLLGb0jPn EMxW172WEri4/se5KVizU1SWAHx8AQuVxBC1q25txsdno1hS2ZY6A2hAT4ZRRn5E9TRu o78X9PMjRxlEUCLul0oEwJbuDueR0qc1IDuJgz6j1b97mIeYRhFmUjTftlekr+EgveQM c8qdnQBR2mBQ1Va1V3bz5FUrjwUTzv/paUGzF0obhblxYKcsrfWxA/Zk8PRaFlaaiBOv YR9Q== In-Reply-To: <20121208225237.GV20323@brightrain.aerifal.cx> (from dalias@aerifal.cx on Sat Dec 8 16:52:37 2012) X-Mailer: Balsa 2.4.11 Content-Disposition: inline X-Gm-Message-State: ALoCoQnRWTi+/2UTKOJKh5LOY67/gJiBq3gMsyDzPTBNV+A/VcMDoiI0ytRs+9KsKuY5Y8uMlxCW Xref: news.gmane.org gmane.linux.lib.musl.general:2447 Archived-At: On 12/08/2012 04:52:37 PM, Rich Felker wrote: > The source of all these problems is basically the same as the benefit > of static linking: the fact that the linker resolves, statically at > link time, which object files are needed to satisfy the needs of the > program. With dlopen, however, there is no static answer; *any* object > is potentially-needed, not directly by the main program, but possibly > by loaded modules. Is there some way you could put a dlopen() symbol in libc.a that forces =20 a build break? Perhaps a redirect to =20 dlopen_is_not_compatible_with_static_linking_go_read_posix? Rob =