Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 28 Apr 2014 10:28:45 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: [PATCH 2/3] Add soname to dynamic section

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

Powered by blists - more mailing lists

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