Skip site navigation (1)Skip section navigation (2)
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>

next in thread | raw e-mail | index | archive | help
Hi=2C=20


I trying to see how dynamic paths could be implemented in the linuxulator t=
o 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 ins=
tallation.  =20
Here's the two file that would need to be changed:  =20

sys/compat/linux/linux_util.c:  =20
const char      linux_emul_path[] =3D "/compat/linux"=3B


sys/amd64/linux32/linux32_sysvec.c:  =20
static Elf32_Brandinfo linux_brand =3D {	.brand		=3D ELFOSABI_LINUX=2C	.mac=
hine	=3D EM_386=2C	.compat_3_brand	=3D "Linux"=2C	.emul_path	=3D "/compat/l=
inux"=2C	.interp_path	=3D "/lib/ld-linux.so.1"=2C	.sysvec		=3D &elf_linux_s=
ysvec=2C	.interp_newpath	=3D NULL=2C	.brand_note	=3D &linux32_brandnote=2C	=
.flags		=3D BI_CAN_EXEC_DYN | BI_BRAND_NOTE}=3B
static Elf32_Brandinfo linux_glibc2brand =3D {	.brand		=3D ELFOSABI_LINUX=
=2C	.machine	=3D EM_386=2C	.compat_3_brand	=3D "Linux"=2C	.emul_path	=3D "/=
compat/linux"=2C	.interp_path	=3D "/lib/ld-linux.so.2"=2C	.sysvec		=3D &elf=
_linux_sysvec=2C	.interp_newpath	=3D NULL=2C	.brand_note	=3D &linux32_brand=
note=2C	.flags		=3D BI_CAN_EXEC_DYN | BI_BRAND_NOTE}=3B


 		 	   		  =



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU179-W518110C25C137C99BB33CEC6320>