Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2011 17:50:18 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: doscmd under 8-stable, anyone?
Message-ID:  <20110615145018.GM48734@deviant.kiev.zoral.com.ua>
In-Reply-To: <20110615144455.GS23206@uriah.heep.sax.de>
References:  <20110615135704.GQ23206@uriah.heep.sax.de> <20110615140051.GL48734@deviant.kiev.zoral.com.ua> <20110615144455.GS23206@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--YRwqFeLBE20lHcU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jun 15, 2011 at 04:44:55PM +0200, Joerg Wunsch wrote:
> As Kostik Belousov wrote:
>=20
> > Do sysctl security.bsd.map_at_zero=3D1
>=20
> Just for the record, this sysctl also makes my really really old utree
> binary work again.  The binary dates back to 386BSD 0.0, and I'm only
> keeping it out of curiosity:
>=20
> j@uriah 66% ls -l /usr/local/bin/utree
> -rwxr-xr-x  1 bin  bin  179639 Apr 30  1992 /usr/local/bin/utree*
>=20
> The only thing to make it run is to use a termcap entry that is
> smaller than 1024 byte, as this used to be a hard-coded limitation in
> the termcap library of those days, and the binary is statically
> linked.  TERM=3Dvt100 works, xterm no longer does.
>=20
> The ability to run this binary only serves as a proof that no backward
> compatibility has ever been broken in FreeBSD. ;-)  (Obviously, all
> the various COMPAT_* options must be present in the kernel config.)

Yes, doscmd and N-magic a.out binaries were the arguments to implement
the sysctl instead of outright disable of the mapping at address 0.
You are the first documented case of the wiseness of the decision :).

BTW, I semi-jokingly committed the support for FreeBSD-1.0/i386 ABI
on amd64 on April 1. Would be interesting to see how does your binary
behaves.

--YRwqFeLBE20lHcU+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk34xqoACgkQC3+MBN1Mb4i7sACeNeWAJVwSrOVNYrsX41gY8sr7
3vMAoOTqVAx8e43vD5WprvQKsrx+aRBs
=CiPn
-----END PGP SIGNATURE-----

--YRwqFeLBE20lHcU+--



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