mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: How can I assess compatibility of a statically linked binary?
Date: Thu, 20 Feb 2014 22:50:35 -0500	[thread overview]
Message-ID: <20140221035035.GY184@brightrain.aerifal.cx> (raw)
In-Reply-To: <53064783.70500@f-prot.com>

On Thu, Feb 20, 2014 at 06:20:51PM +0000, Oliver Schneider wrote:
> > Musl is built on the Linux syscall layer. Linux kernel >=2.6.39 is
> > necessary for POSIX conformant behaviour, older kernels will work
> > with varying degrees of non-conformance, 2.4 kernels will only work
> > for simple single-threaded applications.
> 
> 
> I had mistakenly expected it under
> 
>   <http://wiki.musl-libc.org/wiki/Compatibility>
> 
> when it was of course to be found under:
> 
>   <http://wiki.musl-libc.org/wiki/Supported_Platforms>

This will also be documented more formally in the official manual to
be released in conjunction with musl 1.0. For this we should clarify
what version is really needed. I don't think 2.6.39 is necessary;
something like 2.6.32 should be sufficient for POSIX 2008, barring any
arch-specific bugs (or just general bugs that need to be patched to
avoid having an unstable/insecure kernel). I know glibc is planning on
requiring at least 2.6.32 in the next release, so it would be nice if
we could just state the same requirement.

As for older kernels, somewhere down to 2.6.22 works if you don't care
about atomic close-on-exec working atomically (musl has fallback for
kernels that lack it, but the fallback is of course non-atomic). Then
there are also ranges going all the way back to 2.6.0 or even 2.5.x
that work if you don't care about certain POSIX signal semantics
(mainly, wrongly-generated EINTR where a syscall should have
restarted) and don't need *at() functions (note that musl presently
does not emulate these, even though it could do so using /proc). And
if in addition you don't need threads, even 2.4.x will work. It would
also be nice to get these version ranges documented in detail, in case
anyone has need to use musl binaries with such old kernels (some users
adding new software to existing embedded systems may care; otherwise
it's probably a non-issue).

Rich


      reply	other threads:[~2014-02-21  3:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 17:50 Oliver Schneider
2014-02-20 17:59 ` Justin Cormack
2014-02-20 18:20   ` Oliver Schneider
2014-02-21  3:50     ` Rich Felker [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=20140221035035.GY184@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --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).