From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3881 Path: news.gmane.org!not-for-mail From: Jens Newsgroups: gmane.linux.lib.musl.general Subject: Re: problems with dynamic linking since 0.9.1 Date: Tue, 13 Aug 2013 19:14:42 +0200 (CEST) Message-ID: 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; format=flowed X-Trace: ger.gmane.org 1376414018 14688 80.91.229.3 (13 Aug 2013 17:13:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2013 17:13:38 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3885-gllmg-musl=m.gmane.org@lists.openwall.com Tue Aug 13 19:13:42 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 1V9IA9-0005Wn-Hf for gllmg-musl@plane.gmane.org; Tue, 13 Aug 2013 19:13:41 +0200 Original-Received: (qmail 9869 invoked by uid 550); 13 Aug 2013 17:13:40 -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 9861 invoked from network); 13 Aug 2013 17:13:40 -0000 Received-SPF: none (smtp-gw11.han.skanova.net: domain laas.mine.nu does not designate permitted sender hosts) identity=mailfrom; receiver=smtp-gw11.han.skanova.net; client_ip=81.229.140.47; envelope-from=jensl@laas.mine.nu; helo=81-229-140-47-o1124.telia.com; In-Reply-To: <20130813145259.GI5368@port70.net> User-Agent: Alpine 2.10 (LNX 1266 2009-07-14) Xref: news.gmane.org gmane.linux.lib.musl.general:3881 Archived-At: 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 >