mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Cc: paradox <ddkprog@yahoo.com>
Subject: Re: thanks for toolchain + wish support backtrace
Date: Sat, 12 Jan 2019 14:08:19 +0100	[thread overview]
Message-ID: <20190112130818.GK21289@port70.net> (raw)
In-Reply-To: <20190111214121.GC23599@brightrain.aerifal.cx>

* Rich Felker <dalias@libc.org> [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.)


      reply	other threads:[~2019-01-12 13:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1960303761.17255106.1547240828381.ref@mail.yahoo.com>
2019-01-11 21:07 ` paradox
2019-01-11 21:41   ` Rich Felker
2019-01-12 13:08     ` Szabolcs Nagy [this message]

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=20190112130818.GK21289@port70.net \
    --to=nsz@port70.net \
    --cc=ddkprog@yahoo.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).