[COMMIT osv master] libc: expose it as musl

13 views
Skip to first unread message

Commit Bot

unread,
Jan 9, 2020, 11:28:58 PM1/9/20
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

libc: expose it as musl

This patch exposes the libc implementation which is greatly
a subset of musl as such so that binaries built for musl-based
Linux distributions like alpine do not complain about its absence.

References #1070.

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/core/elf.cc b/core/elf.cc
--- a/core/elf.cc
+++ b/core/elf.cc
@@ -1218,6 +1218,7 @@ program::program(void* addr)
"libm.so.6",
#ifdef __x86_64__
"ld-linux-x86-64.so.2",
+ "libc.musl-x86_64.so.1",
// As noted in issue #1040 Boost version 1.69.0 and above is
// compiled with hidden visibility, so even if the kernel uses
// this library, it will not be visible for the application and

Nadav Har'El

unread,
Jan 12, 2020, 5:53:17 AM1/12/20
to Waldemar Kozaczuk, Osv Dev
On Fri, Jan 10, 2020 at 6:28 AM Commit Bot <b...@cloudius-systems.com> wrote:
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

libc: expose it as musl

This patch exposes the libc implementation which is greatly
a subset of musl as such so that binaries built for musl-based
Linux distributions like alpine do not complain about its absence.

References #1070.

Interesting, thanks. What remains until we can mark #1070 fixed?


Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/core/elf.cc b/core/elf.cc
--- a/core/elf.cc
+++ b/core/elf.cc
@@ -1218,6 +1218,7 @@ program::program(void* addr)
            "libm.so.6",
  #ifdef __x86_64__
            "ld-linux-x86-64.so.2",
+          "libc.musl-x86_64.so.1",
            // As noted in issue #1040 Boost version 1.69.0 and above is
            // compiled with hidden visibility, so even if the kernel uses
            // this library, it will not be visible for the application and

--
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/0000000000007030c8059bc19089%40google.com.

Waldek Kozaczuk

unread,
Jan 12, 2020, 10:44:35 AM1/12/20
to OSv Development
To unsubscribe from this group and stop receiving emails from it, send an email to osv...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages