From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: [PATCH v2] add powerpc64 port
Date: Thu, 14 Apr 2016 15:42:13 +0200 [thread overview]
Message-ID: <20160414134213.GG22574@port70.net> (raw)
In-Reply-To: <20160414080138.GA23694@dora.lan>
* Bobby Bingham <koorogi@koorogi.info> [2016-04-14 03:01:38 -0500]:
> On Thu, Apr 14, 2016 at 01:05:07AM +0200, Szabolcs Nagy wrote:
> > * Bobby Bingham <koorogi@koorogi.info> [2016-04-04 00:26:11 -0500]:
> > > +++ b/arch/powerpc64/bits/setjmp.h
> > > @@ -0,0 +1 @@
> > > +typedef unsigned long long __jmp_buf[66];
> >
> > hm glibc seems to use long[64] with 16byte alignment,
> > is the size diff because of alignment?
>
> Yes. Though apparently the glibc setjmp asm has code to detect a
> misaligned jmp_buf, but its handling of that case ends up overflowing
> the jmp_buf.
>
> I can make some changes to get our jmp_buf down to 65, but the only ways
> to get it down to 64 are either with 16 byte alignment, or to have setjmp
> spill vector registers to the stack first so it can copy them from there
> to the jmp_buf through a gpr.
>
> How important is it to match glibc here?
>
i think we don't care about abi compat
(but it might be interesting to check how much abi
difference there is between glibc and musl, i can
do this if i can build a musl+glibc toolchain)
i just wanted to make sure we understand the
cause of the difference.
next prev parent reply other threads:[~2016-04-14 13:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-04 5:26 Bobby Bingham
2016-04-13 23:05 ` Szabolcs Nagy
2016-04-13 23:13 ` Rich Felker
2016-04-14 0:58 ` Szabolcs Nagy
2016-04-14 8:01 ` Bobby Bingham
2016-04-14 13:42 ` Szabolcs Nagy [this message]
2016-04-15 20:38 ` Szabolcs Nagy
2016-04-16 17:09 ` Rich Felker
2016-04-28 1:38 ` Bobby Bingham
2016-04-28 2:07 ` Rich Felker
2016-04-30 20:15 ` Bobby Bingham
2016-04-14 19:14 ` Rich Felker
2016-04-15 0:55 ` Bobby Bingham
2016-04-15 2:08 ` Rich Felker
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=20160414134213.GG22574@port70.net \
--to=nsz@port70.net \
--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).