From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Legoll Subject: Re: [PACKAGE] musl libc Date: Mon, 8 Aug 2016 20:43:02 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWpVx-0000aQ-Ki for guix-devel@gnu.org; Mon, 08 Aug 2016 14:43:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWpVv-0000X8-I6 for guix-devel@gnu.org; Mon, 08 Aug 2016 14:43:04 -0400 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:36117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWpVv-0000Ww-De for guix-devel@gnu.org; Mon, 08 Aug 2016 14:43:03 -0400 Received: by mail-qk0-x229.google.com with SMTP id v123so198388695qkh.3 for ; Mon, 08 Aug 2016 11:43:03 -0700 (PDT) In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: David Craven Cc: guix-devel > Vincent, can you run file and readelf -d on the sinit binary you > compiled using the gcc-musl wrapper? That will tell us if it worked. > > The output of readelf -d should look like this: > > 0x0000000000000001 (NEEDED) Shared library: [libc.so] > 0x000000000000001d (RUNPATH) Library runpath: > [/nix/store/16c974l1kqra3cr475gcgy2gsii45liq-musl-1.1.14/lib] > > and the output of file should look like this: > > ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically > linked, interpreter > /nix/store/16c974l1kqra3cr475gcgy2gsii45liq-musl-1.1.14/lib/libc.so, > not stripped The default sinit build process uses -static, so I get: $ l /gnu/store/zfbhkbcfjpmnarsid9wl0q4ssswps96p-sinit-1.0/bin/sinit -r-xr-xr-x 2 root root 9.3K Jan 1 1970 /gnu/store/zfbhkbcfjpmnarsid9wl0q4ssswps96p-sinit-1.0/bin/sinit $ file /gnu/store/zfbhkbcfjpmnarsid9wl0q4ssswps96p-sinit-1.0/bin/sinit /gnu/store/zfbhkbcfjpmnarsid9wl0q4ssswps96p-sinit-1.0/bin/sinit: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped $ readelf -d /gnu/store/zfbhkbcfjpmnarsid9wl0q4ssswps96p-sinit-1.0/bin/sinit There is no dynamic section in this file. And I think that shows it worked, just the static way... Do you prefer dynamically linked ? -- Vincent Legoll