From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1638 Path: news.gmane.org!not-for-mail From: Jens Newsgroups: gmane.linux.lib.musl.general Subject: Re: Building without -Wl,-Bsymbolic-functions Date: Sun, 19 Aug 2012 08:11:49 +0200 (CEST) Message-ID: References: <20120818121418.GX27715@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1345356725 6372 80.91.229.3 (19 Aug 2012 06:12:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2012 06:12:05 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1639-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 19 08:12:06 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1T2yjz-0004f9-Ll for gllmg-musl@plane.gmane.org; Sun, 19 Aug 2012 08:12:03 +0200 Original-Received: (qmail 29807 invoked by uid 550); 19 Aug 2012 06:12:02 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 29799 invoked from network); 19 Aug 2012 06:12:01 -0000 In-Reply-To: <20120818121418.GX27715@brightrain.aerifal.cx> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) Xref: news.gmane.org gmane.linux.lib.musl.general:1638 Archived-At: 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 >> 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. 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. Thanks, Jens > > > Rich >