Subject: Re: CVS commit: syssrc/sys/arch/mac68k/conf
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Frederick Bruckman <fredb@immanent.net>
List: source-changes
Date: 02/05/2002 21:24:56
On Tue, 5 Feb 2002, Jason R Thorpe wrote:

> On Tue, Feb 05, 2002 at 07:44:43PM -0600, Frederick Bruckman wrote:
>
>  > > do ELF executables not work on mac68k a.out kernels?  if they do, then
>  > > leaving this option in for now is worth while.
>  >
>  > Apparently not. Something about alignment being different.
>
> Actually, most executables will work fine.  Only some programs (most
> notably, ones that use things that are translated by the m68k_aout
> compat module) will fail.

Given an arbitrary program, how would you tell? What is "EXEC_ELF"
really good for, except to bootstrap the whole system to ELF (in which
case, it may as well go into std.mac68k)?

>  > >    - - Comment out `options COMPAT_SUNOS'. This hasn't been reported to work
>  > >        for a long time, so it's not very useful in GENERIC.
>  > >
>  > > do you mean it has been reported to not work, or there have been no
>  > > reports of it being broken?  the latter would suggest removing it is
>  > > a bad idea and the former would suggest it needs fixing..
>  >
>  > It was broken the last time I tried it, with netscape 3 and some Sun
>  > OS libraries someone put up for download. It may work for somebody. I
>  > just don't think anyone's actually using it. A more useful default
>  > might to enable COMPAT_SVR4 and COMPAT_LINUX. I did get a so-called
>  > linux executable, which "file" said was SVR4, to run under ELF.  (The
>  > kernel doesn't even build with those options under a.out -- there's an
>  > open PR.)
>
> Uh, since when did Netscape publish a binary for SunOS-m68k?!
>
> COMPAT_SUNOS for m68k is for SunOS-m68k binaries (that ran on the Sun3),
> not for SPARC binaries.

You're right--

-> file netscape
netscape: sparc demand paged dynamically linked executable

So I'm a dummy. Are there any freely available Sun3 binaries?

> It is VERY unlikely that COMPAT_SUNOS is broken; the code hasn't changed
> for years.

But do you want it enabled in *GENERIC*? COMPAT_M68K4K probably works,
too (it builds), but I gather it's not enabled, simply because hardly
anyone (no one?) needs it.

Frederick