From: "Daniel Cegiełka" <daniel.cegielka@gmail.com>
To: musl@lists.openwall.com
Subject: Re: [PATCH] Allow different paths for static and shared libraries
Date: Mon, 1 Jun 2015 20:54:15 +0200 [thread overview]
Message-ID: <CAPLrYERCU9b+ZczOESMH8hLQ66FCU2J3XA9xMxF3Skr8cc9qeA@mail.gmail.com> (raw)
In-Reply-To: <20150601012725.GU17573@brightrain.aerifal.cx>
2015-06-01 3:27 GMT+02:00 Rich Felker <dalias@libc.org>:
> On Sun, May 31, 2015 at 06:51:42PM -0300, Ismael Luceno wrote:
>> On Sun, 31 May 2015 12:30:34 -0400
>> Rich Felker <dalias@libc.org> 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
next prev parent reply other threads:[~2015-06-01 18:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-31 7:24 Ismael Luceno
2015-05-31 7:31 ` Rich Felker
2015-05-31 9:10 ` Ismael Luceno
2015-05-31 16:30 ` Rich Felker
2015-05-31 21:51 ` Ismael Luceno
2015-06-01 1:27 ` Rich Felker
2015-06-01 18:41 ` Ismael Luceno
2015-06-01 18:58 ` Rich Felker
2015-06-01 18:54 ` Daniel Cegiełka [this message]
2015-06-06 18:21 ` Anthony G. Basile
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPLrYERCU9b+ZczOESMH8hLQ66FCU2J3XA9xMxF3Skr8cc9qeA@mail.gmail.com \
--to=daniel.cegielka@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).