mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Christian Neukirchen <chneukirchen@gmail.com>
To: musl@lists.openwall.com
Subject: Re: musl-gcc vs. BusyBox 1.18.5: multiple definitions of '_start'
Date: Fri, 15 Jul 2011 12:01:03 +0200	[thread overview]
Message-ID: <87hb6n6exs.fsf@gmail.com> (raw)
In-Reply-To: <20110714132437.507176ef@newbook> (Isaac Dunham's message of "Thu, 14 Jul 2011 13:24:37 -0700")

Isaac Dunham <idunham@lavabit.com> writes:

> applets/built-in.o: In function `_start': (.text+0x0): multiple
> definition of `_start' /opt/musl/lib/crt1.o:(.text+0x0): first defined
> here collect2: ld returned 1 exit status make: *** [busybox_unstripped]
> Error 1
> =======END of error
> grep + strings tell me that "_start" is found in crt1.o, and in the
> "start.o" section of libc.a (and libc.so). 

Sabotage uses:

make CFLAGS_busybox="-Wl,-z,muldefs" HOSTCC=gcc CC=$R/bin/musl-gcc

and that works, but not sure which _start is used there.
(It's not required on a pure-musl system anymore.)

-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org


  parent reply	other threads:[~2011-07-15 10:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-14 20:24 Isaac Dunham
2011-07-14 20:28 ` Rich Felker
2011-07-15 10:01 ` Christian Neukirchen [this message]
2011-07-16  4:14 Isaac Dunham

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=87hb6n6exs.fsf@gmail.com \
    --to=chneukirchen@gmail.com \
    --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).