From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1003 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: bug? sysinfo() and getopt_long() misbehavior Date: Fri, 8 Jun 2012 10:10:01 -0400 Message-ID: <20120608141001.GJ163@brightrain.aerifal.cx> References: <20120608005148.7d82c40b@sibserver.ru> <20120608031243.GG163@brightrain.aerifal.cx> <20120607223707.3cb647a8@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1339164884 23274 80.91.229.3 (8 Jun 2012 14:14:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2012 14:14:44 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1004-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 08 16:14:42 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 1SczxV-00019Q-AG for gllmg-musl@plane.gmane.org; Fri, 08 Jun 2012 16:14:37 +0200 Original-Received: (qmail 7732 invoked by uid 550); 8 Jun 2012 14:14:37 -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 7721 invoked from network); 8 Jun 2012 14:14:37 -0000 Content-Disposition: inline In-Reply-To: <20120607223707.3cb647a8@newbook> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1003 Archived-At: On Thu, Jun 07, 2012 at 10:37:07PM -0700, Isaac Dunham wrote: > > > Unfortunately I don't actually know how to fix these two. > > > > I'm suspecting something is broken with respect to dynamic linking... > > Are you using an old version of binutils? Did you remove or replace > > -Bsymbolic-functions with something else? > > Definitely not, I'd say--that doesn't just misbehave, it will die with > a SIGILL before it gets to main(). Replacing -Bsymbolic-functions with -Bsymbolic to get it to "work" on an old toolchain will prevent getopt and anything that shares global vars between libc and the main program from working. That's what I initially suspected. Rich