Date: Wed, 4 Sep 2013 13:55:10 -0400 From: =?iso-8859-1?B?QnJ1bm8gTGF1euk=?= <brunolauze@msn.com> To: "freebsd-emulation@freebsd.org" <freebsd-emulation@freebsd.org> Subject: Linuxulator Dynamic Paths Message-ID: <BLU179-W518110C25C137C99BB33CEC6320@phx.gbl>
index | next in thread | raw e-mail
Hi,
I trying to see how dynamic paths could be implemented in the linuxulator to handle multiple linux base installation.
Everything would still default to /compat/linux but an environment variable could change it so we can execute multiple applications from multiple installation.
Here's the two file that would need to be changed:
sys/compat/linux/linux_util.c:
const char linux_emul_path[] = "/compat/linux";
sys/amd64/linux32/linux32_sysvec.c:
static Elf32_Brandinfo linux_brand = { .brand = ELFOSABI_LINUX, .machine = EM_386, .compat_3_brand = "Linux", .emul_path = "/compat/linux", .interp_path = "/lib/ld-linux.so.1", .sysvec = &elf_linux_sysvec, .interp_newpath = NULL, .brand_note = &linux32_brandnote, .flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE};
static Elf32_Brandinfo linux_glibc2brand = { .brand = ELFOSABI_LINUX, .machine = EM_386, .compat_3_brand = "Linux", .emul_path = "/compat/linux", .interp_path = "/lib/ld-linux.so.2", .sysvec = &elf_linux_sysvec, .interp_newpath = NULL, .brand_note = &linux32_brandnote, .flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE};
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU179-W518110C25C137C99BB33CEC6320>
