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.3 required=5.0 tests=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 24682 invoked from network); 2 Sep 2020 16:14:27 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2020 16:14:27 -0000 Received: (qmail 23725 invoked by uid 550); 2 Sep 2020 16:14:22 -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 23691 invoked from network); 2 Sep 2020 16:14:22 -0000 From: Nikos Dragazis To: musl@lists.openwall.com Message-ID: Date: Wed, 2 Sep 2020 19:14:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: [musl] Ignoring dependencies libresolv and libcrypt Hi everyone, Apologies if this has already been answered before. I am experimenting with musl. I see that musl produces a single DSO with all symbols, as opposed to glibc which produces multiple DSOs (libthread, libm, librt, etc.). I also notice that musl generates some empty archives for compatibility reasons, namely the lib{crypt,dl,m,pthread,resolv,rt,util,xnet}.a. These are already documented in the FAQ [1]. By looking at the code [2], I see that musl's dynamic linker ignores dynamic dependencies with names lib{c,pthread,rt,m,dl,util,xnet} and this makes sense based on the above. What doesn't make sense to me is that musl's dynamic linker does not ignore dynamic dependencies with names libresolv and libcrypt. Is there a reason for this? Thanks in advance, Nikos [1] https://wiki.musl-libc.org/faq.html#Q:-lib(m|pthread|crypt).a/so-are-empty? [2] https://git.musl-libc.org/cgit/musl/tree/ldso/dynlink.c#n991