🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.att
Article #1084

Help with (proc table address == 0) in sVr2.1 kernel

#1084
From: Theodore Hope
Date: Tue, 22 Jul 1986 14:28
39 lines
2184 bytes
I am bringing up the System V release 2.1 kernel (and assorted utilities) on
a 3b2/300.  I have built the SGS (cc, ld, as, etc) and the entire kernel.
(By the way, release 2.1 has paging and streams but no remote file system.)
Everything seems to work fine, except that 'ps' won't work.  The problem is
the following:

	ps bitches with 'no namelist'.  After it does the 'nlist' to
	find the 'proc', 'swplo', and 'v' structures, the entry for the
	proc table returns with zero (!?).

	nm /unix | grep '^proc'  gives me, among other things, the entries

	  :
	proc	|	| strtag | ....	| ....
	  :
	proc	|      0| extern | ....	| .text		<<= !?!?!?!?
	  :


Why does the namelist contain a zero for the proc structure addr?  I have gone
over the entire kernel make process, and everything looks ok.  The actual
proc variable _is_ referenced in many places (such as os/clock.c, os/fork.c,
os/startup.c, etc) and therefore should contain a "reasonable" address in the
namelist.

I rebuilt the entire C library and SGS programs using themselves (i.e. the
new 2.1 version.)  The kernel runs fine, but I can't do a 'ps' for the
abovementioned reason.  This makes me wonder what else is "screwy" out
there.

Has ld gone crazy?  Is there some crazy incompatibility in the object format?
Any help or hints would be very much appreciated.  (I've spent the last four
days recompiling and recompiling ....)  Thanks in advance.

-- 
Theodore Hope
School of Information & Computer Science, Georgia Tech, Atlanta GA 30332
CSNet:	hope@gatech		ARPA:	Hope%GATech.CSNet @ CSNet-Relay.ARPA
uucp:	...!{akgua,allegra,amd,hplabs,ihnp4,seismo,ut-sally}!gatech!hope
Technical Details
Message-ID: <4181@gatech.CSNET>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!gatech!hope

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!gatech!hope
From: hope@gatech.CSNET (Theodore Hope)
Newsgroups: net.micro.att,net.unix-wizards
Subject: Help with (proc table address == 0) in sVr2.1 kernel
Message-ID: <4181@gatech.CSNET>
Date: Tue, 22-Jul-86 10:28:36 EDT
Article-I.D.: gatech.4181
Posted: Tue Jul 22 10:28:36 1986
Date-Received: Thu, 24-Jul-86 00:26:08 EDT
Organization: School of Information and Computer Science, Georgia Tech, Atlanta
Lines: 39