Subject: small compile problem
To: None <port-pmax@NetBSD.ORG>
From: Arne Juul <arnej@itea.unit.no>
List: port-pmax
Date: 04/10/1995 02:23:26
Since our network was very down this weekend I actually got some
time for playing with netbsd/pmax again, and I got the latest kernel
compiled with these two small fixes: cpu_exec.c is needed to do
elf/ecoff binaries, and if you don't define COMPAT_09 there's a
off-by-one #endif in cpu_exec.c. I send these patches in case
anyone needs them.
That said, I would like to ask about the toolchain: Is it
because we're using ELF and then converting to a.out that this
happens to ps:
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 179 1.0 0.1 308 0 p0 R+ 12:15AM 0:00.20 (ps)
Also, I know the Linux people have been using ELF for a time -
could we get some help from there on the toolchain? I know NetBSD
'should' be GPL-free but we don't have an alternate toolchain anyway.
Yours,
Arne H. J.
--- files.pmax Thu Feb 2 11:11:37 1995
+++ files.pmax.new Sun Apr 9 15:47:56 1995
@@ -14,6 +14,7 @@
arch/pmax/pmax/vm_machdep.c standard
arch/pmax/stand/libsa/callvec.c standard
arch/pmax/pmax/elf.c standard
+arch/pmax/pmax/cpu_exec.c standard
arch/pmax/dev/fb.c standard
arch/pmax/dev/scsi.c standard
arch/pmax/dev/asc.c optional asc device-driver
--- cpu_exec.c Mon Apr 3 10:01:46 1995
+++ cpu_exec.c.new Sun Apr 9 14:55:41 1995
@@ -116,8 +116,8 @@
VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
return exec_aout_setup_stack(p, epp);
-}
#endif
+}
#ifdef COMPAT_ULTRIX
exec_setup_fcn cpu_exec_setup; /* make sure function has correct type */