all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vincent Legoll <vincent.legoll@gmail.com>
To: David Craven <david@craven.ch>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PACKAGE] musl libc
Date: Mon, 8 Aug 2016 20:43:02 +0200	[thread overview]
Message-ID: <CAEwRq=pY5BwUXEj6XQitpsQ4cYCv9jOCdOYF_6yevUG7Y_OtzQ@mail.gmail.com> (raw)
In-Reply-To: <CAL1_imn03yPUiu5qg=9wdDXS2csiHrSxprNGnOHsdsJuqFnv9w@mail.gmail.com>

> 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

  reply	other threads:[~2016-08-08 18:43 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-08 16:47 [PACKAGE] musl libc David Craven
2016-08-08 18:43 ` Vincent Legoll [this message]
2016-08-08 18:46   ` David Craven
  -- strict thread matches above, loose matches on Subject: below --
2016-08-03 13:25 David Craven
2016-08-12 19:15 ` Ricardo Wurmus
2016-08-13  9:32   ` Ricardo Wurmus
2016-08-13  9:44     ` Vincent Legoll
2016-08-13  9:55       ` David Craven
2016-08-13 10:00         ` Vincent Legoll
2016-08-13 10:17           ` David Craven
2016-08-14  7:46             ` Ricardo Wurmus
2016-07-30 12:19 Vincent Legoll
2016-08-02  8:45 ` ng0
2016-08-02 14:01 ` Ricardo Wurmus
2016-08-02 20:18   ` Vincent Legoll
2016-08-03 11:24     ` Ricardo Wurmus
2016-08-03 11:38       ` Vincent Legoll
2016-08-03 12:35         ` Ricardo Wurmus
2016-08-06 12:05           ` ng0
2016-08-08 13:26             ` Vincent Legoll
2016-10-06 21:08               ` ng0
2016-10-08 12:38                 ` David Craven
2016-10-08 13:54                   ` ng0
2016-10-08 14:53                     ` David Craven
2016-10-08 15:12                       ` ng0

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='CAEwRq=pY5BwUXEj6XQitpsQ4cYCv9jOCdOYF_6yevUG7Y_OtzQ@mail.gmail.com' \
    --to=vincent.legoll@gmail.com \
    --cc=david@craven.ch \
    --cc=guix-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.