mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: Bobby Bingham <koorogi@koorogi.info>
Cc: musl@lists.openwall.com, Luca Barbato <lu_zero@gentoo.org>
Subject: Re: Dynamic linker name
Date: Wed, 15 Jun 2016 07:54:42 -0700	[thread overview]
Message-ID: <CAMKF1soOHZXd3rXuFjHTuF1MRBnA07iAAPj6iRzFQ+kY1qBXkg@mail.gmail.com> (raw)
In-Reply-To: <20160615130013.GA6427@dora.lan>

On Wed, Jun 15, 2016 at 6:00 AM, Bobby Bingham <koorogi@koorogi.info> wrote:
> On Wed, Jun 15, 2016 at 05:39:51PM +0800, Lei Zhang wrote:
>> 2016-06-15 17:31 GMT+08:00 Luca Barbato <lu_zero@gentoo.org>:
>> > On 15/06/16 10:16, Lei Zhang wrote:
>> >> i386
>> >> x86_64
>> >> powerpc
>> >> powerpc64
>> >> mips
>> >> mipsel
>> >> mips64
>> >> mips64el
>> >>
>> >> which should just work out the box with my previous patch. I'll take
>> >> care of x32 and ARM (subarchs and ABIs) with further patches.
>> >
>> > Powerpc can be little endian as well but it can wait the arm patch as well.
>>
>> I've only seen powerpc64le; don't know if 32-bit powerpc doesn't
>> support little endian.
>
> There are a couple things you should know about musl's support for
> powerpc64 which mean you probably shouldn't add it.
>
> Two different ABIs exist for powerpc64.  The new one is sometimes called
> powerpc64le.  While it's typically used on little endian, there's no
> reason it can't be used on big endian systems as well.  Musl only
> supports the new ABI, but supports it for both big and little endian.
> The arch names used by musl for them are:
>
> powerpc64
> powerpc64le
>
> Some software out there assumes that big endian powerpc means the old ABI.
> I'm not sure if clang supports big endian powerpc64 with the new ABI or
> not, but it needs to if it's to target big endian powerpc64 musl.
>
> The larger problem for both endians is long double support.  The new ABI
> calls for a 128-bit long double, either IEEE quad, or IBM double-double.
> Musl will not support double-double due to the different floating point
> semantics it provides, and gcc's support for IEEE quad is not fully usable
> on powerpc64 yet.  Therefore, musl currently uses a 64-bit long double on
> powerpc64.
>
> Last I checked, clang only supported using IBM double-double for long
> double on powerpc64.  If this is still true, then clang cannot match
> musl's ABI on powerpc64.

Thats right. I have fixed it in clang here
https://github.com/kraj/clang/commit/3c3627dbd4358c8e97c95a614e63803cc9048fa6

>
> Bobby


      parent reply	other threads:[~2016-06-15 14:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-06  1:47 Lei Zhang
2016-06-06  2:57 ` Rich Felker
2016-06-14 14:43 ` Khem Raj
2016-06-14 15:04   ` Szabolcs Nagy
2016-06-14 15:09     ` Khem Raj
2016-06-14 15:11     ` Rafael Espíndola
2016-06-14 15:56       ` Lei Zhang
2016-06-15  3:06         ` Lei Zhang
2016-06-15  7:10           ` Felix Janda
2016-06-15  8:16             ` Lei Zhang
2016-06-15  9:31               ` Luca Barbato
2016-06-15  9:39                 ` Lei Zhang
2016-06-15 13:00                   ` Bobby Bingham
2016-06-15 14:23                     ` Lei Zhang
2016-06-15 14:54                     ` Khem Raj [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=CAMKF1soOHZXd3rXuFjHTuF1MRBnA07iAAPj6iRzFQ+kY1qBXkg@mail.gmail.com \
    --to=raj.khem@gmail.com \
    --cc=koorogi@koorogi.info \
    --cc=lu_zero@gentoo.org \
    --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).