diff options
author | Dmitry Chagin <dchagin@FreeBSD.org> | 2017-07-03 10:24:49 +0000 |
---|---|---|
committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2017-07-03 10:24:49 +0000 |
commit | a0c59c7afd048327c8a5c79dd2542eb7c85d00ec (patch) | |
tree | 2012aeb44108bd863e3b6370a92e10747d5f6785 /sys/amd64/linux32/linux32_sysvec.c | |
parent | 4600d349be85ff2868868c298e4ecbb6402f8586 (diff) | |
download | src-a0c59c7afd048327c8a5c79dd2542eb7c85d00ec.tar.gz src-a0c59c7afd048327c8a5c79dd2542eb7c85d00ec.zip |
Add support for musl consumers to the Linuxulator.
PR: 213809
Submitted by: Yonas Yanfa
Reported by: Yonas Yanfa
MFC after: 1 week
Relnotes: yes
Notes
Notes:
svn path=/head/; revision=320595
Diffstat (limited to 'sys/amd64/linux32/linux32_sysvec.c')
-rw-r--r-- | sys/amd64/linux32/linux32_sysvec.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c index ea849ba3d847..b50b1bae823e 100644 --- a/sys/amd64/linux32/linux32_sysvec.c +++ b/sys/amd64/linux32/linux32_sysvec.c @@ -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 }; |