From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7847 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Daniel_Cegie=C5=82ka?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Allow different paths for static and shared libraries Date: Mon, 1 Jun 2015 20:54:15 +0200 Message-ID: References: <1433057065-9167-1-git-send-email-ismael@iodev.co.uk> <20150531073157.GR17573@brightrain.aerifal.cx> <20150531061054.75f86040@pirotess> <20150531163034.GT17573@brightrain.aerifal.cx> <20150531185142.7cf46c31@pirotess> <20150601012725.GU17573@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1433184892 6396 80.91.229.3 (1 Jun 2015 18:54:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2015 18:54:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7860-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jun 01 20:54:51 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YzUrK-0005qg-Ke for gllmg-musl@m.gmane.org; Mon, 01 Jun 2015 20:54:50 +0200 Original-Received: (qmail 17722 invoked by uid 550); 1 Jun 2015 18:54:48 -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 17700 invoked from network); 1 Jun 2015 18:54:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=HOTEODPb1WPpH3NIS7b/wnw/tdsTrCksRWpALvN8nG8=; b=fyA82VLUuP8V6a1XYClTZYy/nlDHYx8nBBqUGQrfPJHon/AU9UJ/Dz2FEwfEMpNMZ3 lgq0VUiz88BlYpsctGg3cbon2TzKBryBoz9yFq8cwrseOWaIYVilpxMunsdhpJfIYBdO wOJ0vS2H1hAjfqAadv1zUoQKF1tx5ysCjwyBaW4G03JcgP8P6L90HPfUz7UpQe1H+bRi M4JMDSkXn5gctWQMKYd+geS5dpiiK5HA4ACLUOldVzDsYiEW8AgW+HHuu6weWSf5TcvG WkEkY9e2Hst78qbvNhDlIoQClzVHj6zBBAZAcUTQtY23TaoZm8Pl52KEvH/d8WgZNayv KtDw== X-Received: by 10.55.41.195 with SMTP id p64mr40891062qkp.40.1433184876316; Mon, 01 Jun 2015 11:54:36 -0700 (PDT) In-Reply-To: <20150601012725.GU17573@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:7847 Archived-At: 2015-06-01 3:27 GMT+02:00 Rich Felker : > On Sun, May 31, 2015 at 06:51:42PM -0300, Ismael Luceno wrote: >> On Sun, 31 May 2015 12:30:34 -0400 >> Rich Felker wrote: >> A ld script in place of libc.so, containing "GROUP ( /lib/libc.so )", >> would workaround that. > > Are you sure? I think that would result in a dependency for > "/lib/libc.so" getting put in the binary rather than one for > "libc.so", and that's also a serious bug. from gentoo: # cat /usr/lib/libc.so /* GNU ld script Use the shared library, but some functions are only in the static library, so try that secondarily. */ OUTPUT_FORMAT(elf64-x86-64) GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) ) btw. I am not a fan of this solution. Daniel > Rich