Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 1996 20:53:30 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        sos@FreeBSD.org
Cc:        msmith@atrad.adelaide.edu.au, jdp@polstra.com, hackers@FreeBSD.org
Subject:   Re: Linux compat issue(s)
Message-ID:  <199610161123.UAA03542@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199610161045.MAA21684@ra.dkuug.dk> from "sos@FreeBSD.org" at Oct 16, 96 12:45:15 pm

next in thread | previous in thread | raw e-mail | index | archive | help
sos@FreeBSD.org stands accused of saying:
> 
> > Will your changes just reject an unidentifiable ELF binary out-of-hand,
> > or could you add a sysctl variable to determine which format to 
> > presume?  The latter method would be best, IMHO.
> 
> Hmm, following the ELF style I guess default should always be native, or
> one could argue for SVR4 compliant (which you dont have yet).
> I'm not fond of it being variable, that will generate too much support
> steam I'm afraid.

Native would be pointless, as native binaries will always be
identifiable.  The reason I ask is that for the situation where the
Linux emulator had been loaded, but not the (hypothetical) SVR4
emulator, you could default to Linux and not have to brand your
binaries, and vice versa.

The only situation where branding would be required would be when both
emulations were active, and IMHO _that_ is likely to generate less
support steam just by its rarity.

One could also bias the selection based on the path of the executable,
as that is visible in exec_elf_imgact.  Anything under /compat/linux
is likely to be a linux binary, &c &c.  That would further limit the
requirement for branding to "both emulators loaded and binary outside
of compatability tree".

The last ditch "I have no idea, winging it" case could just default to
the last interpreter in the list - that would let the user alter the
default if there were more than one available by unloading and
reloading the LKM.

> Soren Schmidt             (sos@FreeBSD.org)             FreeBSD Core Team

-- 
]] Mike Smith, Software Engineer        msmith@atrad.adelaide.edu.au    [[
]] Genesis Software                     genesis@atrad.adelaide.edu.au   [[
]] High-speed data acquisition and      (GSM mobile) 0411-222-496       [[
]] realtime instrument control          (ph/fax)  +61-8-267-3039        [[
]] Collector of old Unix hardware.      "Where are your PEZ?" The Tick  [[



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