From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/170 Path: news.gmane.org!not-for-mail From: Christian Neukirchen Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl-gcc vs. BusyBox 1.18.5: multiple definitions of '_start' Date: Fri, 15 Jul 2011 12:01:03 +0200 Message-ID: <87hb6n6exs.fsf@gmail.com> References: <20110714132437.507176ef@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310724077 11829 80.91.229.12 (15 Jul 2011 10:01:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2011 10:01:17 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-254-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 15 12:01:12 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QhfCp-00017T-QX for gllmg-musl@lo.gmane.org; Fri, 15 Jul 2011 12:01:11 +0200 Original-Received: (qmail 9586 invoked by uid 550); 15 Jul 2011 10:01:11 -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 9578 invoked from network); 15 Jul 2011 10:01:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=5ekMvcTcmh1LpJ5x3t7ipeSrr7czcE907sV7DCKXvuM=; b=xeTioDI0p1CghJqbil60MNE30W6DjykSpFNFoAk6a1oTqLHTMgty9NVo1kJq3l3fGH hNzLSVzIRIOQgOj1R/nufaqoQDvjoGn77jQ4irrvA8GSilRismVe8CD1DDy8Yl29d1z2 oZ67je9o99aBScV2yEDYuT5mDUke7Nh5f/I/g= In-Reply-To: <20110714132437.507176ef@newbook> (Isaac Dunham's message of "Thu, 14 Jul 2011 13:24:37 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Xref: news.gmane.org gmane.linux.lib.musl.general:170 Archived-At: Isaac Dunham 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 http://chneukirchen.org