From: "Anthony G. Basile" <basile@opensource.dyc.edu>
To: musl@lists.openwall.com
Subject: Re: [PATCH] Allow different paths for static and shared libraries
Date: Sat, 06 Jun 2015 14:21:47 -0400 [thread overview]
Message-ID: <55733A3B.2040802@opensource.dyc.edu> (raw)
In-Reply-To: <CAPLrYERCU9b+ZczOESMH8hLQ66FCU2J3XA9xMxF3Skr8cc9qeA@mail.gmail.com>
On 6/1/15 2:54 PM, Daniel Cegiełka wrote:
> 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
Just reading some of my backmail here and I want to clarify a point.
That file was taken from a gentoo *glibc* system not musl. On the
stage3 tarballs I push out we have:
# file /usr/lib/libc.so
/usr/lib/libc.so: ELF 64-bit LSB shared object, x86-64, version 1
(SYSV), dynamically linked, stripped
Admittedly other .so's in /usr/lib use similar ld scripts, this is not
the case for libc.so on gentoo musl stages.
I know this is a bit of an aside, but I didn't want readers of this list
to be mislead.
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
prev parent reply other threads:[~2015-06-06 18:21 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
2015-06-06 18:21 ` Anthony G. Basile [this message]
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=55733A3B.2040802@opensource.dyc.edu \
--to=basile@opensource.dyc.edu \
--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).