building a.outs in COFF format

mb at ttidca.UUCP mb at ttidca.UUCP
Thu Jan 29 17:33:47 AEST 1987


Has anyone succeeded in getting either the emacs version of unexec.c
or any other version of unexec to work with SysV Release 2?  

What checks does the USG release 2 kernel make on header fields or
other attributes of a COFF binary that were not made in earlier
releases?

And why does the exec apparently succeed before it has finished making
all such checks?  This seems to be the case; it tries to load the binary
produced by unexec, but the entry point does not get called. 

In trying to build emacs on a National Semi ICM3216, I have run against
several problems.  

The first was that malloc itself would crap out.  This was because for
some bizarre reason, ulimit(3,0) was returning a number in the 300,000
range rather than the 8 meg it should in Nationals release of unix.
This was fixed by "#define ULIMIT_BUG 8192000" in the appropriate .h file,
and conditionalizing the code that calls ulimit.

The second was that unexec would crap out with a SEGV when it got to the 
point of trying to copy the memory between text and data.  snarfing the
code from the v18 unexec which understands such events fixed this problem.

After the above fixes were done, temacs would successfully create a new
a.out file, but an unusable one.

The reason I have been working with v17, rather than v18, is that it
is documented that something broke for release 2 systems between
version 17 and version 18 of unexec. 

If anyone has had success with unexec, or has some suggestions on
things to check, I'd like to hear from you.

mb at ttidca.tti.com (if you are not on the internet)
mb at ttidca.uucp (if you are on the internet - we're waiting for a forwarder)



More information about the Comp.unix.wizards mailing list