From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8087 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Error relocating libc.so: (...): symbol not found Date: Thu, 2 Jul 2015 12:54:31 -0400 Message-ID: <20150702165431.GH1173@brightrain.aerifal.cx> References: <559563E7.6080804@skarnet.org> 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 1435856088 14216 80.91.229.3 (2 Jul 2015 16:54:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2015 16:54:48 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8100-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jul 02 18:54:48 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZAhl8-0005U9-W6 for gllmg-musl@m.gmane.org; Thu, 02 Jul 2015 18:54:47 +0200 Original-Received: (qmail 25868 invoked by uid 550); 2 Jul 2015 16:54:45 -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 25843 invoked from network); 2 Jul 2015 16:54:45 -0000 Content-Disposition: inline In-Reply-To: <559563E7.6080804@skarnet.org> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8087 Archived-At: On Thu, Jul 02, 2015 at 06:16:39PM +0200, Laurent Bercot wrote: > > Hi, > I just pulled the latest musl git head and compiled it. > Previously I was using a git version from right before 1.1.9 > or something. (Sorry, I didn't take notes, I can't tell you > exactly what it was.) > > Now, when I run ldd on a static binary (compiled with either > that new musl or a previous version), I get the following > messages: > > Error relocating libc.so: __muldc3: symbol not found > Error relocating libc.so: __mulsc3: symbol not found > Error relocating libc.so: __mulxc3: symbol not found > > before the expected > ldd: (binary): Not a valid dynamic program > > This is on x86_84 with gcc-4.2.1. > > Is anything wrong with my binaries or new musl installation, > or are those spurious messages? It sounds like a broken libc.so. There should not be dynamic symbol references or definitions for libgcc symbols in libc.so. Is it possible that your toolchain is doing something wacky that links shared libgcc even when we try to do static libgcc? Rich