FreeBSD Bugzilla – Attachment 182934 Details for
Bug 213809
[linux] Cannot run musl binaries e.g., from Alpine Linux
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add ELF brand recognition for musl Linux x86_64 binaries
0001-Add-ELF-brand-recognition-for-musl-Linux-x86_64-bina.patch (text/plain), 1.16 KB, created by
Val Packett
on 2017-05-26 14:23:09 UTC
(
hide
)
Description:
Add ELF brand recognition for musl Linux x86_64 binaries
Filename:
MIME Type:
Creator:
Val Packett
Created:
2017-05-26 14:23:09 UTC
Size:
1.16 KB
patch
obsolete
>From b4672b4bac96d1d9a49a84ecaab609882978990d Mon Sep 17 00:00:00 2001 >From: Greg V <greg@unrelenting.technology> >Date: Fri, 26 May 2017 16:54:45 +0300 >Subject: [PATCH] Add ELF brand recognition for musl Linux x86_64 binaries > >Removes the need to brandelf all binaries from the Alpine Linux distribution. >--- > sys/amd64/linux/linux_sysvec.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > >diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c >index 6e12d41a8f0..594e03c38e4 100644 >--- a/sys/amd64/linux/linux_sysvec.c >+++ b/sys/amd64/linux/linux_sysvec.c >@@ -921,9 +921,22 @@ static Elf64_Brandinfo linux_glibc2brandshort = { > .flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE > }; > >+static Elf64_Brandinfo linux_muslbrand = { >+ .brand = ELFOSABI_NONE, >+ .machine = EM_X86_64, >+ .compat_3_brand = "Linux", >+ .emul_path = "/compat/linux", >+ .interp_path = "/lib/ld-musl-x86_64.so.1", >+ .sysvec = &elf_linux_sysvec, >+ .interp_newpath = NULL, >+ .brand_note = &linux64_brandnote, >+ .flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE >+}; >+ > Elf64_Brandinfo *linux_brandlist[] = { > &linux_glibc2brand, > &linux_glibc2brandshort, >+ &linux_muslbrand, > NULL > }; > >-- >2.13.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 213809
: 182934