9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] kl
@ 2002-04-02  9:37 forsyth
  2002-04-02 10:32 ` Lucio De Re
  0 siblings, 1 reply; 2+ messages in thread
From: forsyth @ 2002-04-02  9:37 UTC (permalink / raw)
  To: 9fans

i think this is at least part of the problem (kl isn't up to date in
the released version, and hasn't got the xrefresolv changes).
it links cpu when i include them.  i suppose there was a backwards
dependency somewhere.

diff /n/dump/2002/0329/sys/src/cmd/kl/l.h ./l.h
224a225
> EXTERN	int	xrefresolv;
293c294
< void	loadlib(int, int);
---
> void	loadlib(void);
diff /n/dump/2002/0329/sys/src/cmd/kl/obj.c ./obj.c
16a17
>  *	-H3 -T0xE0004000 -R4		is javastation boot format
118a120,128
> 	case 3:	/* javastation boot */
> 		HEADR = 32L;
> 		if(INITTEXT == -1)
> 			INITTEXT = 0xE0004020L;
> 		if(INITDAT == -1)
> 			INITDAT = 0;
> 		if(INITRND == -1)
> 			INITRND = 4;
> 		break;
165c175
< 		loadlib(0, libraryp);
---
> 		loadlib();
195c205
< loadlib(int beg, int end)
---
> loadlib(void)
197c207,209
< 	int i, t;
---
> 	int i;
> 	long h;
> 	Sym *s;
199,200c211,213
< 	for(i=end-1; i>=beg; i--) {
< 		t = libraryp;
---
> loop:
> 	xrefresolv = 0;
> 	for(i=0; i<libraryp; i++) {
204,205d216
< 		if(t != libraryp)
< 			loadlib(t, libraryp);
206a218,222
> 	if(xrefresolv)
> 	for(h=0; h<nelem(hash); h++)
> 	for(s = hash[h]; s != S; s = s->link)
> 		if(s->type == SXREF)
> 			goto loop;
317a334
> 			xrefresolv = 1;


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-02 10:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-02  9:37 [9fans] kl forsyth
2002-04-02 10:32 ` Lucio De Re

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).