mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Luca Barbato <lu_zero@gentoo.org>
To: Lei Zhang <zhanglei.april@gmail.com>,
	musl@lists.openwall.com, Khem Raj <raj.khem@gmail.com>
Subject: Re: Dynamic linker name
Date: Wed, 15 Jun 2016 11:31:06 +0200	[thread overview]
Message-ID: <c1a315bf-8d2e-b844-6360-a71e197e22e6@gentoo.org> (raw)
In-Reply-To: <CAOYuCc14RUw2=U8e6dVZK7V4HTZOo+c0YmwKYaViH6-susoL=w@mail.gmail.com>

On 15/06/16 10:16, Lei Zhang wrote:
> 2016-06-15 15:10 GMT+08:00 Felix Janda <felix.janda@posteo.de>:
>> Lei Zhang wrote:
>>> 2016-06-14 23:56 GMT+08:00 Lei Zhang <zhanglei.april@gmail.com>:
>>>> 2016-06-14 23:11 GMT+08:00 Rafael Espíndola <rafael.espindola@gmail.com>:
>>>>> Sorry, but my understanding is that r272662 is correct for x86, no?
>>>>>
>>>>> We can definitely add support for more arches with musl if someone sends a
>>>>> patch to the list.
>>>>
>>>> If no one intends to do this, I can prepare further patches and
>>>> relevant test cases for other archs.
>>>
>>> Now I'm determining the $ARCH field in musl's dynamic linker name for
>>> non-x86 archs. After reading these two patches (thanks to their
>>> authors):
>>>
>>> http://git.alpinelinux.org/cgit/aports/plain/main/clang/clang-0004-Add-musl-targets-and-dynamic-linker.patch
>>> https://github.com/kraj/meta-clang/blob/master/recipes-devtools/clang/clang/0001-clang-driver-Add-musl-ldso-support.patch
>>
>> You should really take a look at musl's configure script.
> 
> I should've done that. Sorry for my laziness...
> 
>> For mips* and powerpc* there are also "-sf" variants. There are also
>> "mipsr6*" and "mipsn32*" which might or might not be supported by llvm.
> 
> From LLVM's code, it seems these variants aren't supported.
> 
>>> BTW, I leaved out x32 on purpose, since musl's support for it is
>>> experimental (right?), and it requires yet another environment type
>>> "muslx32" in LLVM.
>>
>> x32 support has been in musl for many releases, whereas mips64 has
>> not landed in a released version of musl, yet...
> 
> So now I have this list:
> 
> 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.

lu


  reply	other threads:[~2016-06-15  9:31 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 [this message]
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

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=c1a315bf-8d2e-b844-6360-a71e197e22e6@gentoo.org \
    --to=lu_zero@gentoo.org \
    --cc=musl@lists.openwall.com \
    --cc=raj.khem@gmail.com \
    --cc=zhanglei.april@gmail.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).