From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2424 Path: news.gmane.org!not-for-mail From: Paul Schutte Newsgroups: gmane.linux.lib.musl.general Subject: static linking and dlopen Date: Sat, 8 Dec 2012 20:09:35 +0200 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f13eaf819106b04d05b3c9e X-Trace: ger.gmane.org 1354990187 13355 80.91.229.3 (8 Dec 2012 18:09:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2012 18:09:47 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2425-gllmg-musl=m.gmane.org@lists.openwall.com Sat Dec 08 19:10:01 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 1ThOqe-0000X7-UE for gllmg-musl@plane.gmane.org; Sat, 08 Dec 2012 19:10:01 +0100 Original-Received: (qmail 9465 invoked by uid 550); 8 Dec 2012 18:09:47 -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 9457 invoked from network); 8 Dec 2012 18:09:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/j8Zvn0utLADFUIlrsf1OIHk6X3ul4E49vj51EQRgmA=; b=HOPC/pqRPwSv9Vh+E0qo0YaDpIRNEmluyQOPsSwccdIY7piJ39+P9rKvoGGEJznbEk Jjuwmp32Ao4LsTw0oTE8lZqPWtj2AT3ING7DNAZD1iq5C1OzchJ45vgsquyWYdhSY0tx ag+HlbREgyGto8dxl8NB1VegOddMaMOBzYhsw0hyMGTol7WTpfEV+vXihWdvrCNt98DB wBwca29pkgI6QQULUbT0hRC455lQmIdSZxrZSU2lXMnyFqa1d0KM7MB5UULi7Ce5MDLH 2P93RP/9MCWkDOJRYZ2tG3WmXx0z9PvXcbPdLz5MKAFn05v4ylhYdki6tDK2VtI+UjXo 5eXg== Xref: news.gmane.org gmane.linux.lib.musl.general:2424 Archived-At: --e89a8f13eaf819106b04d05b3c9e Content-Type: text/plain; charset=ISO-8859-1 Hi, I have a strong preference towards static linking these days because the running program use so much less memory. When I link a binary statically and that binary then use dlopen, would that work 100% ? What would open if the shared object that was dlopened want's to call functions in other shared libraries ? I understand that when using dynamic linking those libraries would just get loaded, but I am not sure what would happen with static linking. Regards Paul --e89a8f13eaf819106b04d05b3c9e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I have a strong preference towards static linking these days bec= ause the running program use so much less memory.

When I link a bina= ry statically and that binary then use dlopen, would that work 100% ?

What would open if the shared object that was dlopened want's to ca= ll functions in other shared libraries ?
I understand that when using dy= namic linking those libraries would just get loaded, but I am not sure what= would happen with static linking.

Regards
Paul
=A0
--e89a8f13eaf819106b04d05b3c9e--