From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13593 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: thanks for toolchain + wish support backtrace Date: Sat, 12 Jan 2019 14:08:19 +0100 Message-ID: <20190112130818.GK21289@port70.net> References: <1960303761.17255106.1547240828381.ref@mail.yahoo.com> <1960303761.17255106.1547240828381@mail.yahoo.com> <20190111214121.GC23599@brightrain.aerifal.cx> 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 1547298387 31521 195.159.176.226 (12 Jan 2019 13:06:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2019 13:06:27 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: paradox To: musl@lists.openwall.com Original-X-From: musl-return-13609-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jan 12 14:06:23 2019 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 1giIzW-00084b-P7 for gllmg-musl@m.gmane.org; Sat, 12 Jan 2019 14:06:22 +0100 Original-Received: (qmail 9801 invoked by uid 550); 12 Jan 2019 13:08:32 -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 9783 invoked from network); 12 Jan 2019 13:08:31 -0000 Mail-Followup-To: musl@lists.openwall.com, paradox Content-Disposition: inline In-Reply-To: <20190111214121.GC23599@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:13593 Archived-At: * Rich Felker [2019-01-11 16:41:21 -0500]: > On Fri, Jan 11, 2019 at 09:07:08PM +0000, paradox wrote: > > hello > > thanks for toolchain > > but i need support backtrace function from execinfo.h > > i mean > > man 3 backtrace > > for mips > > i try > > https://musl.cc/mipsel-linux-musln32sf-cross.tgz > > but can't find execinfo.h > > > > i saw broadcom does support it own build https://github.com/Broadcom/stbgcc-6.3/releases > > but broadcom don't support softfloat > > > > can you please support in your build a backtrace functions ? > > You can build libbacktrace against musl and it should work. The > functionality is not provided in musl because it requires a great deal > of machinery that most users don't need, that has no reason to be > intertwined with libc, and that makes it impossible to bootstrap a > toolchain and library ecosystem efficiently (since there would be a > circular dependency between the unwind library code and libc). note that if you use backtrace on a system you may want to build musl itself with -funwind-tables or even -fasynchronous-unwind-tables in case you need to unwind from signal handlers, by default musl is not built that way, you need to set CFLAGS at configure time to get it (and unwinding across asm code in musl may not work still), this will increase the size of libc. (same is true for any library that takes callbacks or may be interrupted by signal handlers that try to use backtrace, but if the software works on other systems then these are presumably already taken care of and only the libc needs special attention.) (the exact requirement for unwinding to work is target specific, i don't know mips, but the above mentioned flags sould be enough for c code.)