From owner-freebsd-arch@FreeBSD.ORG Sun Jan 13 13:21:12 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 73F81617; Sun, 13 Jan 2013 13:21:12 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id E35703F5; Sun, 13 Jan 2013 13:21:11 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r0DDKvSg039763; Sun, 13 Jan 2013 15:20:57 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.4 kib.kiev.ua r0DDKvSg039763 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r0DDKvOh039762; Sun, 13 Jan 2013 15:20:57 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 13 Jan 2013 15:20:57 +0200 From: Konstantin Belousov To: Ed Schouten Subject: Re: LLVM Image Activator Message-ID: <20130113132057.GQ2561@kib.kiev.ua> References: <50E9BC2D.7000302@freebsd.org> <201301070936.39052.jhb@freebsd.org> <20130107172433.GX82219@kib.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="htVlOAOs/VIaEhiC" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-toolchain@freebsd.org, freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2013 13:21:12 -0000 --htVlOAOs/VIaEhiC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 13, 2013 at 12:41:09PM +0100, Ed Schouten wrote: > Hi Kostik, >=20 > 2013/1/7 Konstantin Belousov : > > I still do remember the buzz about the binary format 0xCAFEBABE, which > > AFAIR gained image activator support on several OSes, to be garbage > > collected. >=20 > Maybe it would then be a good idea then to add some kind of general > purpose remapping imgact? Example: >=20 > /etc/imgacttab: >=20 > cafebabe /usr/local/bin/java > cffaedfe /usr/local/bin/osx_emulator > 4243c0de /usr/bin/lli >=20 > That way we still give people the freedom to play around with mapping > their own executable formats, but don't need to maintain a bunch of > imgacts. A generic module that could be somewhat customized at runtime to map offset+signature into the shebang path could be a possibility indeed. I strongly prefer to have it as module and not enabled by default. Asking Nathan for writing the thing is too much, IMHO, esp. in the response to the 50-lines hack. --htVlOAOs/VIaEhiC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJQ8rS5AAoJEJDCuSvBvK1BOS0QAIFUrY+SSfw7mrzHFFIlkdZr V1f/BD6ttZPTLWjxzkFh99xOgYikcxdwBHriz+y15pjNfp4qdsq1ShUvkeslGgfj mjmXXQeLcSERybNokzFzRJ4PehAQ7Nb0GjkYFZVstPBcBIF1WPgYBfw2m+LAXbwZ ru9WC4shXYyqX7i7vv3eJ5vybJAiy0KUSs1q24H6Vmxc3ouIBY9WXYtWO7HNw0oC SYuQ2Ns43qK36c3SpKFUSrAoFgyuVLR/aKfCCo0I3qeV0Wn+wmhE9Feni5I+q2Ar Qgjz23h3ZHTiux8bLa1CdWXt2Ayqa1hDzVTthPnsCJHLrLwbc7VcwCsW9i2O90ts Dm9irz/w9vneG7HIYgw2YAQKq9AJHSjLy0+OVXUpqnrO4LzfW1VHNh3h3tqlUJJ1 qhlOfzYb8qv0w/5Y2vMbP+fWFH76aFJeVCGSDd+bHSUvVqdICUNZFJRzlW3aAi09 xaZiF63Oi7kaU2gydCZ/pimVCPBaKsqlzkfwY++V0z6sVincxnnO2NqKyv3gYsXQ 4ARcChMpOJHqAzt9MlxQXkXIgE380rxnMWMB6VC66graZJ9Kx1QglZA1AN809w1e tZ2R5PM/ySwM4fYpw8VxHXhegEsG1aIirlVIWZQ/P6pcOgmp43ZF7SOk1Yi5MRQA igJsuK5VjMZpijPmo6mO =4znq -----END PGP SIGNATURE----- --htVlOAOs/VIaEhiC--