NetBSD/sys/compat
manu d77ec799a5 Support Darwin static binaries (I should say: support the only Darwin
static binary: otool). Dynamic binaires have a pointer to the Mach-O
header on the top of the stack, static binaries don't have this, and
having it produced a crash.

One bugfix: the EXEC_MACHO code assumes that entry = NULL means that
the entry point has not been found in the load commands seen so far.
Therefore we need to initialized entry to NULL if we want a static binary
to discover it. (dynamic binaries were forced to iscover it because when
the intepreter load command is found, entry is updated whatever its
value was before).

One hack: Both COMPAT_MACH and COMPAT_DARWIN are willing to run Mach-O
binaries. COMPAT_MACH fails for dynamic binaries because it cannot find
the interpreter in /emul/mach. For static binaires, it will accept them
(and for Darwin static binaries, this will cause a failure). Until we
rite a test for matchinf Darwin static binaries, just swap the order of
COMPAT_MACH and COMPAT_DARWIN in the exec switch so that COMPAT_DARWIN
is tried first (this will have the advantage of speeding up program
startup). EXECSW_PRIO_{FIRST_LAST} does not seem to work...
2003-10-19 07:52:22 +00:00
..
aout Regen. 2003-09-23 14:33:34 +00:00
aoutm68k regen 2003-09-23 18:32:12 +00:00
common Don't put the netbsd32_compat*.c files in the 'compat library'. Unconditionally 2003-10-15 13:32:14 +00:00
darwin Support Darwin static binaries (I should say: support the only Darwin 2003-10-19 07:52:22 +00:00
freebsd constify sendsig/trapsignal 2003-09-25 22:00:02 +00:00
hpux add support for non-executable mappings (where the hardware allows this) 2003-08-24 17:52:28 +00:00
ibcs2 avoid out-of-bound memory access. found by openbsd "bound" C attribute. 2003-10-01 08:03:48 +00:00
irix Catch up with const sigset_t. From Christopher SEKIYA. 2003-09-28 08:11:47 +00:00
linux Adapt to SIGINFO changes. 2003-10-10 18:08:04 +00:00
m68k4k - GC all the setup_stack functions 2003-08-08 18:57:01 +00:00
mach Fix error in struct definition 2003-10-18 13:25:27 +00:00
netbsd32 Don't put the netbsd32_compat*.c files in the 'compat library'. Unconditionally 2003-10-15 13:32:14 +00:00
osf1 catch up with sys___sigaction14 compat_16 rename 2003-09-23 18:54:24 +00:00
ossaudio Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00
pecoff regen 2003-09-23 18:32:12 +00:00
sunos catch up with const sigset_t and const ksiginfo_t 2003-09-28 00:04:52 +00:00
sunos32 constify 2003-09-28 10:24:47 +00:00
svr4 Add the gating of system calls that cause modifications to the underlying 2003-10-15 11:28:59 +00:00
svr4_32 Add the gating of system calls that cause modifications to the underlying 2003-10-15 11:28:59 +00:00
ultrix add support for non-executable mappings (where the hardware allows this) 2003-08-24 17:52:28 +00:00
vax1k - GC all the setup_stack functions 2003-08-08 18:57:01 +00:00
Makefile