mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: Alexander Revin <lyssdod@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: ABI compatibility between versions
Date: Mon, 25 Feb 2019 19:33:53 -0500	[thread overview]
Message-ID: <20190226003353.GP23599@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAM+zL-eRHHFadbsck0UjkVGAK228HvTBisNLmD=d1FDPqJ+yfA@mail.gmail.com>

On Tue, Feb 26, 2019 at 12:18:06AM +0100, Alexander Revin wrote:
> Hi all,
> 
> I know this have been briefly discussed here before, but still: does
> musl guarantee in some way that executable/library compiled against
> one musl version will work with  another (for example, 1.18 and 1.21)
> ?
> 
> I remember there were concerns against embedding versioning
> information in musl like glibc does, but is there a way to somehow
> ensure the stability between releases?

It guarantees that there is no ABI mismatch. That's not entirely the
same as guaranteeing that it will work. If the application was relying
on a bug in an old version to function, or was poking at some
accidentally-exposed libc internals not defined as a public interface,
it's possible that updating libc.so will expose this bug in the
application.

This is different from the glibc approach, which is to use symbol
versioning to attempt to retain "bug-compatibility" with the version
of glibc the application was linked with. Such a system forces new
application binaries that want to be able to run on systems with old
glibc to link against the old glibc, and thereby get the buggy
behaviors even if they're running on a system without the bugs. Myself
and most of the musl community I'm aware of consider this entirely
unreasonable, and that's why musl doesn't do it.

Rich


  reply	other threads:[~2019-02-26  0:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-25 23:18 Alexander Revin
2019-02-26  0:33 ` Rich Felker [this message]
2019-02-26  9:58   ` Szabolcs Nagy
2019-02-26 11:28     ` Alexander Revin
2019-02-26 15:11       ` Rich Felker
2019-02-26 16:22         ` Alexander Revin
2019-02-26 11:55     ` u-uy74

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=20190226003353.GP23599@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=lyssdod@gmail.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).