From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3882 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: problems with dynamic linking since 0.9.1 Date: Tue, 13 Aug 2013 14:03:31 -0400 Message-ID: <20130813180331.GE221@brightrain.aerifal.cx> References: <20130813110709.GH5368@port70.net> <20130813145259.GI5368@port70.net> 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: ger.gmane.org 1376417034 17306 80.91.229.3 (13 Aug 2013 18:03:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2013 18:03:54 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3886-gllmg-musl=m.gmane.org@lists.openwall.com Tue Aug 13 20:03:54 2013 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 1V9Iwk-0000jw-M7 for gllmg-musl@plane.gmane.org; Tue, 13 Aug 2013 20:03:54 +0200 Original-Received: (qmail 3622 invoked by uid 550); 13 Aug 2013 18:03:54 -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 3593 invoked from network); 13 Aug 2013 18:03:43 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3882 Archived-At: On Tue, Aug 13, 2013 at 07:14:42PM +0200, Jens wrote: > > On Tue, 13 Aug 2013, Szabolcs Nagy wrote: > > >* Jens [2013-08-13 13:18:27 +0200]: > >>On Tue, 13 Aug 2013, Szabolcs Nagy wrote: > >>> > >>>you didn't tell us the problem > >>> > >>>at least show a crashing dynamic linked executable > >>>with straced loader and musl ldd output > >> > >>Sorry. Its actually linking the binary that doesnt work. > >> > > > >ah ok i did not see that > > > >i'd check libc.so if there is some obvious error > >ld should be able to handle it > >(eg file libc.so, readelf -a libc.so, nm -D libc.so, or just ./libc.so) > > > >since you use landley's weird toolchain it may be a > >problem with the old binutils > > Thanks! You nailed it in one. If I use newer binutils it works. > > (In response to the wrapper problem, I let REALGCC point to the real > gcc and not the wrapper). > > Thanks again, > Jens > > > > >>bash-4.1# musl-gcc -c t.c > >>bash-4.1# musl-gcc t.o > >>/opt/musl/lib/libc.so: file not recognized: File format not recognized > >>collect2: ld returned 1 exit status > > It would be nice to get to the bottom of this, still. It's not my intent to require new binutils for linking against musl. Any idea why it might have been failing? Are there verbosity level options to ld that might help track this down? By the way, how old were those binutils? I saw "firmware Linux" mentioned, which was the predecessor of Aboriginal, so unless that's just still landley's dir name, maybe these are a lot older than I thought.. Rich