mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Cc: nsz@port70.net
Subject: Re: Preparing to release 0.9.12
Date: Thu, 25 Jul 2013 12:39:15 -0400	[thread overview]
Message-ID: <20130725163915.GI4284@brightrain.aerifal.cx> (raw)
In-Reply-To: <20130725184551.58d83b40@vostro>

On Thu, Jul 25, 2013 at 06:45:51PM +0300, Timo Teras wrote:
> > > Which would then make LDSO_ARCH, and SONAME accordingly. And with
> > > the soname version set, we could do proper binary ugprades (even
> > > when not everything is yet rebuilt).
> > 
> > why do you care about the name of the loader?
> > 
> > musl could use a random string, the only requirement
> > is that each abi has a unique identifier so there is
> > no collision
> > 
> > if the name changes between distros then a simple
> > binary that only depends on libc becomes non-portable
> 
> Well, when we have native tool chain, the loader name will have musl in
> it, and it's not portable to non-musl systems.

The binaries won't work without musl anyway.

> I can probably live with the default LDSO_ARCH name as long as so
> versioning is done properly. But I think it would still be useful to

We should figure out what "properly" means then. I think arranging for
the soname to contain the version for package management purposes, but
no other use, would probably meet your needs. Unlike glibc, musl aims
not to force you to update libc.so just because an application was
compiled against a newer version, but only if it actually needs a
feature in the newer version. (This is similar to how versioning works
with the kernel, BTW.) But distros often will want to impose this
requirement just to make sure a sufficiently new version is available
to have all features any of their packages might need.

> let it be overriden, in case distro decides to add patches that break
> ABI.

If the distro is doing this, the patch could (and should) change the
dynamic linker name at the same time it makes the other changes.
However I think you really over-estimate the need for breaking ABI.
It should not happen. glibc has not broken ABI in over a decade, and
aside from the C++ ABI (which is not part of the app-to-libc ABI),
musl has not broken ABI at all except to fix some types that were
defined so wrong that the associated interfaces didn't work.

If ABI changes were needed, moving to a new verison number for the
dynamic linker would be the right approach, I think. But I don't see
that happening anytime soon.

Rich


  reply	other threads:[~2013-07-25 16:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-24 20:02 Rich Felker
2013-07-25  7:44 ` Timo Teras
2013-07-25 15:05   ` Szabolcs Nagy
2013-07-25 15:45     ` Timo Teras
2013-07-25 16:39       ` Rich Felker [this message]
2013-07-25 16:16   ` Rich Felker
2013-07-25 16:59     ` Timo Teras
2013-07-25 17:18       ` Rich Felker
2013-07-25 17:27         ` Rich Felker
2013-07-26  0:38       ` Isaac
2013-07-26  2:08         ` Rich Felker
2013-07-26  5:13         ` Timo Teras
2013-07-26  5:34           ` Rich Felker
2013-07-26  6:07             ` Timo Teras
2013-07-26  6:18               ` 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=20130725163915.GI4284@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    --cc=nsz@port70.net \
    /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).