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 8898 invoked from network); 16 Jun 2020 01:25:56 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 16 Jun 2020 01:25:56 -0000 Received: (qmail 29794 invoked by uid 550); 16 Jun 2020 01:25:54 -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 29776 invoked from network); 16 Jun 2020 01:25:54 -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:cc; bh=8FnW2xBevAvZEnxx4I1Nqrt+G0EizPm1bO4gH5kBubQ=; b=pEIrsKOyQ8DvomAl5aABQqcRNE6wFH8wvxnZryZ1+95/l9k1KrKQWq8zXYtyosGf1j MSO/JjAZhUtt1dalTewt1KSTyQR9ZlSffHVAxeXqkArnTQ5NDcgqAT+FMjR2wkNRDm9v H0gUo61zuxdPSAnFGQA+4SrfKCNHZ2czOQBiVqUYqPedFikCjMPalp7wHiBJJsgRtLXA duznFXl2BLJoWoQmtDJBq6M/iub2Zfisyis3hG6JsUc1YGljPF8z6qfpZlFz4ZddHM/u hIB8P/pFjBpfqP3Wa8mCR8F+AHhJW0vTc9/mqAQnhKbFhQuzdik4Ypq0xFhcs9bsjn4N xumQ== 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:cc; bh=8FnW2xBevAvZEnxx4I1Nqrt+G0EizPm1bO4gH5kBubQ=; b=f6bmdSnNoSj5w1C1bzVIB/Q8CTN2wN2GnUtH0PL4hOj6rroOHi6pwApIb9Odu28jsg gkIMl0fVEfSN69Y52bXC3ntNO5iCqSG9n1Lwr4xdifRFeoy5X2GxkIQea729TLZ/gLFc 5LuEBRnvMH79pu6FQrtkG9JrOUYVDPjsuzpHRuJL49eL+l6pdQqORiZxwJ5h01wJePYW pQk3tQLRbITSWhdNXQFtxNYpQvnx/QjYcM1l10GbkzJ+ctEs7qV4S9bnt5Wi/J6X8obB y7Jxo1QLdbMNuM8otyVEOop1TxMSF9ob6JgTHWzCB4iLkVo6E17yrIxVNwuAaAdhogFu gtkA== X-Gm-Message-State: AOAM5335FiiiuX12jsTwIEyVZlRUPyV3JSGx8jg6KXCwK+hMOAoBE0Xz KPdarVbVsy+cVoZAqzK43FC6K+2q4Yq6pS/7K3M= X-Google-Smtp-Source: ABdhPJwLUEv9ND1mCbqtr6qxEUq7jVzTZ3XiMg85WMCY5iXWCNDA3mGWcEwZuxDIn0BPTdRGQPEtZbpwnFD2U5YTOH0= X-Received: by 2002:a92:4c7:: with SMTP id 190mr806955ile.41.1592270742122; Mon, 15 Jun 2020 18:25:42 -0700 (PDT) MIME-Version: 1.0 References: <20200616011638.GH6430@brightrain.aerifal.cx> In-Reply-To: <20200616011638.GH6430@brightrain.aerifal.cx> From: Jeffrey Walton Date: Mon, 15 Jun 2020 21:25:15 -0400 Message-ID: To: Rich Felker Cc: 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 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? Jeff