Add support for musl consumers to the Linuxulator.
PR: 213809 Submitted by: Yonas Yanfa Reported by: Yonas Yanfa MFC after: 1 week Relnotes: yes
This commit is contained in:
parent
4600d349be
commit
a0c59c7afd
@ -923,9 +923,22 @@ static Elf64_Brandinfo linux_glibc2brandshort = {
|
||||
.flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE
|
||||
};
|
||||
|
||||
static Elf64_Brandinfo linux_muslbrand = {
|
||||
.brand = ELFOSABI_LINUX,
|
||||
.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
|
||||
};
|
||||
|
||||
|
@ -1141,9 +1141,22 @@ static Elf32_Brandinfo linux_glibc2brand = {
|
||||
.flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE
|
||||
};
|
||||
|
||||
static Elf32_Brandinfo linux_muslbrand = {
|
||||
.brand = ELFOSABI_LINUX,
|
||||
.machine = EM_386,
|
||||
.compat_3_brand = "Linux",
|
||||
.emul_path = "/compat/linux",
|
||||
.interp_path = "/lib/ld-musl-i386.so.1",
|
||||
.sysvec = &elf_linux_sysvec,
|
||||
.interp_newpath = NULL,
|
||||
.brand_note = &linux32_brandnote,
|
||||
.flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE
|
||||
};
|
||||
|
||||
Elf32_Brandinfo *linux_brandlist[] = {
|
||||
&linux_brand,
|
||||
&linux_glibc2brand,
|
||||
&linux_muslbrand,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -1120,9 +1120,22 @@ static Elf32_Brandinfo linux_glibc2brand = {
|
||||
.flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE
|
||||
};
|
||||
|
||||
static Elf32_Brandinfo linux_muslbrand = {
|
||||
.brand = ELFOSABI_LINUX,
|
||||
.machine = EM_386,
|
||||
.compat_3_brand = "Linux",
|
||||
.emul_path = "/compat/linux",
|
||||
.interp_path = "/lib/ld-musl-i386.so.1",
|
||||
.sysvec = &elf_linux_sysvec,
|
||||
.interp_newpath = NULL,
|
||||
.brand_note = &linux_brandnote,
|
||||
.flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE
|
||||
};
|
||||
|
||||
Elf32_Brandinfo *linux_brandlist[] = {
|
||||
&linux_brand,
|
||||
&linux_glibc2brand,
|
||||
&linux_muslbrand,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user