diff options
author | jdp <jdp@FreeBSD.org> | 1999-04-03 22:20:03 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1999-04-03 22:20:03 +0000 |
commit | 60ad9560502beabab095c9441389f5ad42ab0d86 (patch) | |
tree | c740f0812cd3e34726c1c768f6008d375c5d68a5 /sys/kern/imgact_aout.c | |
parent | dd18b40e3fd648d6d36b7b384929832ec0177168 (diff) | |
download | FreeBSD-src-60ad9560502beabab095c9441389f5ad42ab0d86.zip FreeBSD-src-60ad9560502beabab095c9441389f5ad42ab0d86.tar.gz |
Restore support for executing BSD/OS binaries on the i386 by passing
the address of the ps_strings structure to the process via %ebx.
For other kinds of binaries, %ebx is still zeroed as before.
Submitted by: Thomas Stephens <tas@stephens.org>
Reviewed by: jdp
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r-- | sys/kern/imgact_aout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index 871efe8..0092aeb 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: imgact_aout.c,v 1.47 1999/03/04 18:04:40 alc Exp $ + * $Id: imgact_aout.c,v 1.48 1999/03/10 07:07:42 alc Exp $ */ #include <sys/param.h> @@ -119,6 +119,9 @@ exec_aout_imgact(imgp) case QMAGIC: virtual_offset = PAGE_SIZE; file_offset = 0; + /* Pass PS_STRINGS for BSD/OS binaries only. */ + if (N_GETMID(*a_out) == MID_ZERO) + imgp->ps_strings = PS_STRINGS; break; default: /* NetBSD compatibility */ |