mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: Jeffrey Walton <noloader@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: [musl] Is Musl responsible for runpath parsing in an elf file?
Date: Mon, 15 Jun 2020 21:16:38 -0400	[thread overview]
Message-ID: <20200616011638.GH6430@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAH8yC8nTdsWDitc=BjtUCK6X73kA0r8-6TCcJjrgssT=6TQPrQ@mail.gmail.com>

On Mon, Jun 15, 2020 at 08:45:18PM -0400, Jeffrey Walton wrote:
> Hi Everyone,
> 
> Please forgive my ignorance... Is Musl responsible for runpath parsing
> during elf loading? If it matters, I'm working on Alpine Linux.

Yes, loading of all libraries except the dynamic linker itself (which
includes libc on musl) is the responsibility of the dynamic linker and
is performed in userspace.

When searching for a given library as a dependency (DT_NEEDED), musl's
processing of rpath/runpath uses the runpath of the shared object
that's depending on it and causing it to be pulled in, and continues
this resolution recursively backwards, potentially up to the main
program's runpath, if not found.

Rich

  reply	other threads:[~2020-06-16  1:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-16  0:45 Jeffrey Walton
2020-06-16  1:16 ` Rich Felker [this message]
2020-06-16  1:25   ` Jeffrey Walton
2020-06-17 19:40     ` Szabolcs Nagy
2020-06-17 19:51       ` Jeffrey Walton

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=20200616011638.GH6430@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=noloader@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).