From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2446 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:02:35 -0600 Message-ID: <1355083355.9353.1@driftwood> References: <20121208204709.GD23126@port70.net> 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 1355083373 27313 80.91.229.3 (9 Dec 2012 20:02:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2012 20:02:53 +0000 (UTC) Cc: musl@lists.openwall.com To: musl@lists.openwall.com Original-X-From: musl-return-2447-gllmg-musl=m.gmane.org@lists.openwall.com Sun Dec 09 21:03:07 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 1Thn5e-00014y-0i for gllmg-musl@plane.gmane.org; Sun, 09 Dec 2012 21:03:06 +0100 Original-Received: (qmail 3772 invoked by uid 550); 9 Dec 2012 20:02:53 -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 3761 invoked from network); 9 Dec 2012 20:02:53 -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=YtI8i2QhxxLBxdCmV0sIPM0c2CpaRHmIrI2y1hp2R4A=; b=IVc5j5YLFRnI29i8tkp0UwKEXoLjgziZdvXBrRW92ZgPynDJ/tOTZP+qRVzMBYwYT4 80NPBg6Evy/GeWXiswFXOu5/ulY5VfSYsgUmWxWQBB5KUZIDMYHficQpfRbbPp+g/O3c h2U8Y4zWCD7S/2CAiqMJBK/hwEqr5ISyIlbifijxlYnapNLrF1hGED+yYPvg4f+B6AAv BVqW4UG1iI5ahzdQb0FkWWWFKhSVAjUS/oW+Dd65BVOwQrMNz1ECGOVkU/bLzgRKMFhL Lrjgc7m/4EXCOu3fwg9uV2tI61JSFrkLbf3nQ+kKaN13A+Plf03igFMSSUGN1OWCetow L8cw== In-Reply-To: <20121208204709.GD23126@port70.net> (from nsz@port70.net on Sat Dec 8 14:47:09 2012) X-Mailer: Balsa 2.4.11 Content-Disposition: inline X-Gm-Message-State: ALoCoQkNmGfM7KAyc3wL6VhpjAyZVwFruRNJdu7RdLPtNqUyApumjd0YBO3CyMics4DM2wxRwvvW Xref: news.gmane.org gmane.linux.lib.musl.general:2446 Archived-At: On 12/08/2012 02:47:09 PM, Szabolcs Nagy wrote: > * Paul Schutte [2012-12-08 20:09:35 +0200]: > > When I link a binary statically and that binary then use dlopen, =20 > would that > > work 100% ? >=20 > not required to work >=20 > and musl does not implement it (always returns 0) >=20 > > What would open if the shared object that was dlopened want's to =20 > call > > functions in other shared libraries ? >=20 > see the first paragraph in the description of dlopen: >=20 > http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlopen.html Please add this to the FAQ, or whatever "how shared libraries work" =20 documentation you wind up doing. There were also earlier discussions of =20 the horrors of dlclose that should be noted somewhere. (Unless this is a "belling the cat" situation where suggesting it makes =20 it my responsibility, but I don't actually know this stuff...) Rob=