Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2004 23:35:07 +1100
From:      Tim Robbins <tjr@freebsd.org>
To:        Michal Pasternak <michal@pasternak.w.lub.pl>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/64169: linux binaries dump core on exit
Message-ID:  <20040314123507.GA23930@cat.robbins.dropbear.id.au>
In-Reply-To: <20040314120935.GA83582@pasternak.w.lub.pl>
References:  <200403140213.i2E2DSPD001611@freefall.freebsd.org> <20040314120935.GA83582@pasternak.w.lub.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 14, 2004 at 01:09:35PM +0100, Michal Pasternak wrote:

> Tim J. Robbins [Sat, Mar 13, 2004 at 06:13:28PM -0800]:
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=64169
> 
> Any chances for MFC? If you'd provide me the list of changed files (or at
> least some details about commit, that fixes this PR), I'd love to provide
> patches for 4.9.

I'm in the middle of shuffling around my machines, so I don't have
convenient access to one running 4.x to MFC this. What I think you
need to do to get Slackware binaries working is to MFC support for
the Linux exit_group() syscall. It should be a
simple matter of adding:
252	MNOPROTO LINUX	{ void sys_exit(int rval); } exit_group sys_exit_args void
to sys/i386/linux/syscalls.master and regenerating linux_proto.h,
linux_sysent.c, and linux_sysvec.c by typing "make sysent" in that
directory. This change was part of linux/syscalls.master rev. 1.52.

I can't confirm that exit_group() is the only thing missing from 4.9
required to run Slackware 9 binaries, but they definitely do work
on -current:

sh-2.05b# uname -srm
Linux 2.4.2 i686
sh-2.05b# cat /etc/slackware-version
Slackware 9.1.0


Tim



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