mailing list of musl libc
 help / color / mirror / code / Atom feed
From: aep <aep@exys.org>
To: <musl@lists.openwall.com>
Subject: Re: hm, libc crashes  loading libc
Date: Sat, 02 Jun 2012 15:30:14 +0200	[thread overview]
Message-ID: <c2678bc6183769a961aa30c62ef28fb9@exys.org> (raw)
In-Reply-To: <20120602040322.GP163@brightrain.aerifal.cx>

On Sat, 2 Jun 2012 00:03:22 -0400, Rich Felker wrote:
> On Sat, Jun 02, 2012 at 12:18:55AM +0200, aep wrote:
>> hashtab=0x0 sounds wrong, but how did it become zero?


turns out the problem is that gcc 4.7.0 from archlinux adds 
--hash-style=gnu to ld, which musl cannot read.


this fixes it for me:


diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh
index 5604685..9353706 100644
--- a/tools/musl-gcc.specs.sh
+++ b/tools/musl-gcc.specs.sh
@@ -25,7 +25,7 @@ libgcc.a%s %:if-exists(libgcc_eh.a%s)
  %rename link old_link

  *link:
-%(old_link) -dynamic-linker $ldso -nostdlib
+%(old_link) -dynamic-linker $ldso -nostdlib --hash-style=sysv

  *esp_link:



  parent reply	other threads:[~2012-06-02 13:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-01 22:18 aep
2012-06-01 22:59 ` aep
2012-06-02  4:03 ` Rich Felker
2012-06-02 11:03   ` aep
2012-06-02 13:30   ` aep [this message]
2012-06-02 20:32     ` Rich Felker
2012-06-02 21:18       ` aep
2012-06-02 21:41         ` Rich Felker
2012-06-03 11:27           ` aep

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=c2678bc6183769a961aa30c62ef28fb9@exys.org \
    --to=aep@exys.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).