Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120818121418.GX27715@brightrain.aerifal.cx>
Date: Sat, 18 Aug 2012 08:14:18 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: Building without -Wl,-Bsymbolic-functions

On Sat, Aug 18, 2012 at 01:38:23PM +0200, Jens wrote:
> 
> Hi!
> 
> Im building musl inside an oldish uclibc environment based on uclibc
> 0.9.30.1, gcc 4.1.2 and GNU ld version 2.17.
> 
> The linker does not accept -Bsymbolic-functions.
> 
> Im now building the shared library despite of this.
> 
> How broken will the musl libc be without -Bsymbolic-functions ?

If building without it entirely, the shared libc will just crash.

If replacing it with -Bsymbolic, it will run, but global variables in
libc that are accessed by the application (e.g. environ, optind, ...)
will actually have separate copies in libc and the application, and
thus the app won't work as expected.

A patch to add -Bsymbolic-functions to old binutils would be very
welcome... In the mean time, you could compile a new ld and pass the
-B option to gcc to give it the path for the new ld.


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.