Subject: Re: building libkvm
To: None <>
From: Ben Harris <>
List: port-arm
Date: 07/12/2001 13:58:33
On Thu, 12 Jul 2001, Richard Earnshaw wrote:

> It seems we have two possible situations.
> 1) We leave it as it is, which means that all builds must use the same
> values of these parameters, or we must have different binaries for each
> possible kernel variation of this value.
> 2) We make it dynamic, which means that binaries would work on all native
> builds, but cross dumps, or dumps made before the native kernel values
> change, would not work.
> I know which sounds the most preferable to me.

Well, yes.  It's obvious that (1) is wrong.  The question is basically how
to do (2).  The easiest is to follow other ports, use the value of
__ps_strings to find the top of the user's stack, and assume that zero is
as good a guess at the bottom of user memory as any.  If we feel like
being fancy, we could get sysctl to return the correct values, but that
will still leave holes (e.g. 26-bit processes on a 32-bit system, or
debugging arm26 crash dumps on an arm32 system), so I'd go for the easy

Ben Harris                                                   <>
Portmaster, NetBSD/arm26               <URL:>