> nope.  9atom does this.  i had to deal with this for 64 bit
> quite a while ago, since the add to mb to the brk trick doesn't
> work when your page size is 2mb.  be aware if you're attaching segments
> that your idea of what the page size might be may be inaccurate.

i should be more clear on this, the magic numbers don't work.  this exposes
the fact that this code is making assumptions that aren't called out.  it's best
to avoid those by letting the kernel place the segment.  the kernel indeed has
the information to place this segment correctly.  ... or should have---there's 
a bug
in the labs kernel where an automaticly placed segment can collide with the
temporary stack.  i solved this by putting the temporary stack above the normal
stack, but i think there was some thought that there were better ideas.  i felt 
that
running a placement algorithm on the temporary stack for every exec was
excessive.

- erik

Reply via email to