Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 1 Jun 2015 20:54:15 +0200
From: Daniel Cegiełka <daniel.cegielka@...il.com>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] Allow different paths for static and shared libraries

2015-06-01 3:27 GMT+02:00 Rich Felker <dalias@...c.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@...c.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

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.