View Single Post

   
  #2 (permalink)  
Old 01-05-2008, 08:00 AM
Norman Black
 
Posts: n/a
Default Re: AIX shared libraries: early or late binding?

"Dan Stromberg" <strombrg@dcs.nac.uci.edu> wrote in message
newsan.2005.07.18.22.19.15.679848@dcs.nac.uci.ed u...
>
> I did a bit of googling but didn't find anything relevant.
>
> When using shared libraries on AIX, are symbols required for the program
> to be fully functional all bound at load time, or are they bound only
> after something actually calls a given function?


I cannot claim to be an expert but it appears to be load time only. I have
written linkers for ELF (Linux, Solaris) and recently XCOFF (Aix) and the
stub code that transfers control on a call to a shared object on AIX does
not seem to support binding when called as the ELF stub code does. On ELF
the stub code (they call it plt) branches to a call to the dynamic linker
and it then patches the stub code to go directly to the procedure. On AIX
the stub code (they call it glink) transfers control directly to the
procedure.

Norman
Saperion Inc.


Reply With Quote