Subject: Re: 'prebind' implementation (was Re: HEADS UP: migration to fully dynamic linked "base" system)
To: Bang Jun-Young <junyoung@mogua.com>
From: Andrew Brown <atatat@atatdot.net>
List: tech-userlevel
Date: 08/27/2002 22:40:13
>> > - '.pplt' has resolved symbolic references, so there's no need to invoke
>> >   dynamic linker, ld.elf_so(1), for unresolved references as current
>> >   dynamic linking mechanism works. I expect we can get lots of time
>> >   savings here. 
>> 
>> this presupposes that shared objects will be loaded at the same
>> location from invocation to invocation, no?
>
>No, 'prebind' will figure out mappings of shared objects in process
>address space same as ld.elf_so(1) actually does for different process
>images. For example, libc.so.12 will be supposed to be loaded at
>0x48056000 for /usr/bin/foo and 0x48058000 for /usr/bin/bar.

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.  :)

-- 
|-----< "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."