From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 17 Feb 2010 08:50:44 +0000 From: Jacob Todd To: weigelt@metux.de, Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20100217085043.GA24579@zoidberg.hsd1.mi.comcast.net> References: <20100217133109.GA10816@nibiru.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rwEMma7ioTxnRzrJ" Content-Disposition: inline In-Reply-To: <20100217133109.GA10816@nibiru.local> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [9fans] Binary format Topicbox-Message-UUID: d49b6cfe-ead5-11e9-9d60-3106f5b1d025 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 17, 2010 at 02:31:09PM +0100, Enrico Weigelt wrote: >=20 > Hi folks, >=20 > just curious: which binfmt does Plan9 use ? > How are share libraries handled (if they exist at all) ? >=20 > Inspired by recent discussions @ gentoo-user, I'm thinking a bit > how an simple and efficient binfmt could look like. Some key > ideas are: >=20 > * purely runtime information (no debug stuff, etc) > * everthing's sharable/relocatable module, with strict dependencies > * on exec() the process image will be constructed the modules along > the dependency tree (the main program as root) > * each module may have an entry point (main module w/o is allowed, > even if it wouldn't make much sense ;-o), these are called after > relocation, along the dependency tree, from leaf to root. > * the whole loader sits in the kernel (maybe w/ some additional > helper deamon in userland), but userland can pass parameters > like search pathes, etc via env. >=20 > IMHO having the dynamic loader in kernel-land (in contrary to ELF=20 > on GNU) not just removes the need for lots of syscalls, but allows > a lot of optimizations, eg. code sharing w/ mmap() or caching > relocation data. >=20 >=20 Where was this thread at? I'm subscribed to gentoo-user, but I don't have any threads about binary formats in my inbox. Was the discussion in another thread (maybe the giant HAL thread)? --=20 I am a man who does not exist for others. --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEARECAAYFAkt7reMACgkQdg8JTBUsaI5gMACffmToR3qbryTCNjE3kGGejMs4 gHcAnitKPJzsnSH9z26/BiaLco4t8u3o =RGnA -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--