Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 19 Aug 2012 08:11:49 +0200 (CEST)
From: Jens <>
Subject: Re: Building without -Wl,-Bsymbolic-functions

On Sat, 18 Aug 2012, Rich Felker wrote:

> On Sat, Aug 18, 2012 at 01:38:23PM +0200, Jens wrote:
>> Hi!
>> Im building musl inside an oldish uclibc environment based on uclibc
>>, 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.

Lots of enligthening information in answers to this question. Thank you!

I did as suggested and compiled a newer version of ld.
Compilation now works beautifully out of the box.


> 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.