From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12819 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: undefined reference to `raise' with musl static toolchain Date: Wed, 9 May 2018 17:24:37 +0200 Message-ID: <20180509152437.GY4418@port70.net> References: <20180508144417.216cefa5@windsurf.home> <20180508162226.GA30163@voyager> <20180508163423.GM1392@brightrain.aerifal.cx> <20180509112932.1a3176b0@windsurf.home> <20180509154407.1164eb41@windsurf.home> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1525879366 3279 195.159.176.226 (9 May 2018 15:22:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 May 2018 15:22:46 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) Cc: Rich Felker , Thomas Petazzoni To: musl@lists.openwall.com Original-X-From: musl-return-12835-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 09 17:22:42 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fGQvS-0000l3-7A for gllmg-musl@m.gmane.org; Wed, 09 May 2018 17:22:42 +0200 Original-Received: (qmail 19928 invoked by uid 550); 9 May 2018 15:24:49 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 19899 invoked from network); 9 May 2018 15:24:49 -0000 Mail-Followup-To: musl@lists.openwall.com, Rich Felker , Thomas Petazzoni Content-Disposition: inline In-Reply-To: <20180509154407.1164eb41@windsurf.home> Xref: news.gmane.org gmane.linux.lib.musl.general:12819 Archived-At: * Thomas Petazzoni [2018-05-09 15:44:07 +0200]: > > So: why does a musl-based toolchain requires an explicit -static, while > it isn't needed with uClibc-ng ? > there can be many reasons.. e.g. if mktime in uclibc-ng happens to reference raise then it would get linked in independently of libgcc. or maybe uclibc-ng has its own __aeabi_*div implementation. or the way libgcc was configured, the raise(SIGFPE) was disabled (it is only enabled for linux targets, but who knows how *-linux-uclibcgnueabihf is interpreted). you can check these using nm/objdump/readelf on libc.a and libgcc.a