Coda File System

Re: etext/edata/end

From: Jan Harkes <jaharkes_at_cs.cmu.edu>
Date: Mon, 8 Jan 2001 14:13:00 -0500
On Sat, Jan 06, 2001 at 04:45:37AM -0800, Timothy J. Wood wrote:
> 
>    coda/coda-src/vice/srv.cc has:
> 
>      SLog(0, "Server etext 0x%x, edata 0x%x", &etext, &edata);
> 
>    Should it really be getting the _address_ of the variable containing 
> the etext/edata or should it just be printing the etext/edata 
> themselves?

You are right, I guess nobody actually has ever looked at the
information, and it actually looks like something that has survived from
some dark era when it took some more work to set up RVM segment.

> src/venus/venusutil.cc has:
> 
>      fdprint(afd, "\tsegment sizes = (%#08x, %#08x, %#08x, %#08x)\n",
> 	     etext, edata - etext, end - edata, (char *)sbrk(0) - end);

And the log shows:

Unix Rusage:
        times = (13, 6), rss = (0, 0, 0, 0)
	page = (5522, 850), swap = (0), block = (0, 0)
	msg = (0, 0), sig = (0), csw = (0, 0)
	segment sizes = (00000000, 00000000, 00000000, 0x81f8000)

So my guess is that etext, edata and end are never even initialized.
I'll just remove the lines referring to them.

Jan
Received on 2001-01-08 14:13:07