mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: Error relocating libc.so: (...): symbol not found
Date: Thu, 2 Jul 2015 12:54:31 -0400	[thread overview]
Message-ID: <20150702165431.GH1173@brightrain.aerifal.cx> (raw)
In-Reply-To: <559563E7.6080804@skarnet.org>

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


  parent reply	other threads:[~2015-07-02 16:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-02 16:16 Laurent Bercot
2015-07-02 16:45 ` Szabolcs Nagy
2015-07-02 16:54 ` Rich Felker [this message]
2015-07-02 17:49   ` Laurent Bercot
2015-07-02 18:47     ` Laurent Bercot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150702165431.GH1173@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).