Subject: Re: 'prebind' implementation (was Re: HEADS UP: migration to fully dynamic linked "base" system)
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Andrew Brown <atatat@atatdot.net>
List: tech-userlevel
Date: 08/27/2002 23:08:57
> > yes, but is foo to expect that libc will be at 0x48056000 every time
> > foo is executed?
> > 
> > i have actually managed to get mine to load at 0xbdb48000 tonight.  :)
>
>Oh, just because you're hacking on UVM :-)

zakly.  :)

>For prebinding to work, yes, you expect it to be loaded at the same place
>each time, and encode them as doing so.  And prebinding would use a fixed
>mapping at the specified location in order to make that work.

how about if, instead of using fixed, it specified a hint and "bailed"
if the returned address wasn't what it wanted?  even the mmap(2) man
page says that the use of MAP_FIXED is discouraged...

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."