From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9957 invoked from network); 17 Jun 2020 19:52:05 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 17 Jun 2020 19:52:05 -0000 Received: (qmail 27775 invoked by uid 550); 17 Jun 2020 19:52:03 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 27752 invoked from network); 17 Jun 2020 19:52:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=+wEeti7J7WW2aLpeUf5TBCZAPNWRN/8fxNEPV9DijJo=; b=gCFnaQVWWVPAa4AjZHjLBJOf5jmTaD7JbydJu5GvGTE8HWx3R4lHKJXd/+V/DHcWg2 qT3qRe1gzAC5D/YfGjN7L0pccAkXjGghRZTx3RB9utC/E5tUxul3mqa4H//JrXbMnLra UfimQvK21ZeDG+XP3MKKoc7ZxBeiRZuqm0oC29P7r71mBzkyednj9IOQ91ntSfv926vQ dl7eysvt83tvQuX3FWZdaxjxv7ZZPwCUPAYtr4pFqS0coId3A2FbZe5yP2OW1tdLZzjT pmecrJ0GvNSqpO8L+lkqY2fFCLY+0AHE2sdsj/7x0sNvTHeBEuv9DZ0CLxdt6n7y8cZQ bFNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=+wEeti7J7WW2aLpeUf5TBCZAPNWRN/8fxNEPV9DijJo=; b=myMM+cxMJlJ9N7GhtocXk4pKYxCXMaDhDwCwM3z+1lXJIiH5opySlgl/SWgMXNab/h 5dEtN1va6DLsrdmcLpBu22pU+JZFORGr+RhVCfZeY6JLyJFffc1XUoVqsRhTU8KPvRi1 rUWu/6v5iKzr5d9ONMVMVawPCNGYJ75s1G5rKUVgdA23M9QIeCyJ3Su7hYW2kCfNBh9a u6EyIf7dTr2rsG0jjJ/VXlt6ZwrmYdU3Z564CNrzZDVyWxh1+uNZQYSZ+ckmEKlp6dV7 1dzTpjTwvzLxGFMbte/Y04JG7UJDWO/KdB1vAwvYtYuWLBmG9OE/QAJ1DKN30f6WAg9p BLUw== X-Gm-Message-State: AOAM531wGiZRKXCnw7trtUIVIEOdK8oR3KzQzzoKP6m1pzOfNAm10lwD nncZPwQ9yG6S9NAhiIBQO0NY7fSUECSqCLy7CkoirlsS X-Google-Smtp-Source: ABdhPJwehZgWCmYgp4JuglwZhOu1UnUC3dS7tLBQ2ovTfPhke8ZNXg7wYNYb+zf+/EB/oTSODfOiBYE35Q4pLehMKMs= X-Received: by 2002:a92:c103:: with SMTP id p3mr588659ile.166.1592423510604; Wed, 17 Jun 2020 12:51:50 -0700 (PDT) MIME-Version: 1.0 References: <20200616011638.GH6430@brightrain.aerifal.cx> <20200617194053.GC2048759@port70.net> In-Reply-To: <20200617194053.GC2048759@port70.net> From: Jeffrey Walton Date: Wed, 17 Jun 2020 15:51:38 -0400 Message-ID: To: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [musl] Is Musl responsible for runpath parsing in an elf file? On Wed, Jun 17, 2020 at 3:40 PM Szabolcs Nagy wrote: > > * Jeffrey Walton [2020-06-15 21:25:15 -0400]: > > On Mon, Jun 15, 2020 at 9:16 PM Rich Felker wrote: > > > 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. > > > > Thanks Rich. > > > > I may have mis-filed this against Alpine: > > https://gitlab.alpinelinux.org/alpine/aports/-/issues/11655. > > > > Is it expected behavior? Should I move it to Musl bug tracker? > > yeah i remember this discussion > > https://sourceware.org/legacy-ml/binutils/2019-06/msg00014.html > > i think there is no good solution, you have to figure > out the right level of escape magic for your build > system when passing runpath flags. Man, I'm getting old. I forgot about that discussion. My memory is not worth a shit anymore... Jeff