From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4982 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 2/3] Add soname to dynamic section Date: Mon, 28 Apr 2014 10:28:45 -0400 Message-ID: <20140428142844.GY26358@brightrain.aerifal.cx> References: <1398649434-23560-1-git-send-email-raj.khem@gmail.com> <1398649434-23560-2-git-send-email-raj.khem@gmail.com> <20140428020032.GU26358@brightrain.aerifal.cx> <20140428055421.GA1429@muslin> <20140428062239.GA1516@muslin> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1398695344 9486 80.91.229.3 (28 Apr 2014 14:29:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 14:29:04 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4986-gllmg-musl=m.gmane.org@lists.openwall.com Mon Apr 28 16:28:58 2014 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 1WemYD-00052y-Me for gllmg-musl@plane.gmane.org; Mon, 28 Apr 2014 16:28:57 +0200 Original-Received: (qmail 20094 invoked by uid 550); 28 Apr 2014 14:28:57 -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 20086 invoked from network); 28 Apr 2014 14:28:56 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:4982 Archived-At: On Mon, Apr 28, 2014 at 12:20:39AM -0700, Khem Raj wrote: > > It should be possible to add -Wl,-soname=libc.so to LDFLAGS. > > For example, > > ./configure --prefix=/usr --libdir=/lib LDFLAGS="-Wl,-soname=libc.so" > > Yes. already dropped it in. This is fairly harmless, but note that it could be harmful to add -Wl,-soname=xxx with different values of xxx. In particular, if the soname is not of the form "libc.*", the dynamic linker will attempt to load it (not knowing it's libc) and very bad things will happen when libc is loaded twice in the same process. Rich