mailing list of musl libc
 help / color / mirror / code / Atom feed
* How can I assess compatibility of a statically linked binary?
@ 2014-02-20 17:50 Oliver Schneider
  2014-02-20 17:59 ` Justin Cormack
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Schneider @ 2014-02-20 17:50 UTC (permalink / raw)
  To: musl

Hi,

when I have a file linked against glibc the file(1) utility will usually
tell me something like this:

ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked
(uses shared libs), for GNU/Linux 2.6.15, stripped

However, when I run this on a statically linked binary that uses musl, I
get

ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked,
stripped

which gives no indication of the minimum expected kernel. Does that mean
that this binary will also run on, say, a 2.4.x kernel? I guess not?

How can I tell which kernel interface a certain binary requires? After
all the system call numbers on which the libc relies change every once
in a while.

Thanks,

// Oliver


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-21  3:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-20 17:50 How can I assess compatibility of a statically linked binary? Oliver Schneider
2014-02-20 17:59 ` Justin Cormack
2014-02-20 18:20   ` Oliver Schneider
2014-02-21  3:50     ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).