sys-libs/musl-abi
musl's ABI on top of llvm-libc, for running musl binaries unmodified
ChangeLog
commit d5ed9df681efc7b6d8e07bdd34b8f1dca3025e7e
Author: Mike Lothian <mike@fireburn.co.uk>
Date: Mon Sep 21 17:39:52 2026 +0100
sys-libs/musl-abi: Add
A musl binary needs its loader and its libc under the names it was linked
against. Both are this libc: the loader name is a symlink to llvm-libc's,
and the library behind it defines only what musl does differently, so
every other name it imports reaches llvm-libc untouched.
That is three functions. __libc_start_main in musl's form, because the
loader leaves the executable's initialisers to its own startup code, and
setjmp with longjmp, because musl's jmp_buf is sixty four bytes where
this libc uses eighty eight and would write past the end of one.
Nothing of musl is installed.
Author: Mike Lothian <mike@fireburn.co.uk>
Date: Mon Sep 21 17:39:52 2026 +0100
sys-libs/musl-abi: Add
A musl binary needs its loader and its libc under the names it was linked
against. Both are this libc: the loader name is a symlink to llvm-libc's,
and the library behind it defines only what musl does differently, so
every other name it imports reaches llvm-libc untouched.
That is three functions. __libc_start_main in musl's form, because the
loader leaves the executable's initialisers to its own startup code, and
setjmp with longjmp, because musl's jmp_buf is sixty four bytes where
this libc uses eighty eight and would write past the end of one.
Nothing of musl is installed.


View
Download
Browse