Subject: Re: COMPAT_IBCS2, SCO OSR5 executables SEGV on NetBSD 2.0
To: Ben Harris <bjh21@netbsd.org>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: tech-kern
Date: 01/12/2005 07:41:26
On Wed, 29 Dec 2004 22:45:39 +0000
Ben Harris <bjh21@netbsd.org> wrote:
> In article <200412292151.iBTLpGUq011152@ector.cs.purdue.edu> you
> write:
> >I found this comment in /usr/src/sys/compat/ibcs2/ibcs2_exec_elf32.c:
> >
> > * The SCO compiler adds the string "SCO" to the .notes section of
> > all* binaries I've seen so far.
> >
> >It seems to be there:
> >
> >$ readelf -x 14 wc       
> >
> >Hex dump of section '.note':
> >  0x00000000 004f4353 00000001 0000000c 00000004 ............SCO.
> >  0x00000010          00010000 00000003 00010001 ............
> 
> Hmm.  I note that ibcs2_exec_elf32.c contains:
> 
> #define SCO_SIGNATURE	"\004\0\0\0\014\0\0\0\001\0\0\0SCO\0"

Any ideas about COFF?  I have programs that ran under 1.5 but crash the
system (complete hang - no crash dump) under anything since.  Here is
the header from one of them:

00000000  4c 01 07 00 da 0f 4d 28  a0 39 03 00 71 14 00 00 
|L.....M(.9..q...|
00000010  1c 00 03 01 0b 01 00 00  d8 95 02 00 c4 49 00 00 
|.............I..|

I'm not even sure if it is running under emulation or not.  Is there any
way to check or force it?

-- 
D'Arcy J.M. Cain <darcy@NetBSD.org>
http://www.NetBSD.org/