On Tue, Jan 18, 2000 at 10:19:04PM +0100, Gerald Richter wrote:
> 
> >
> > Yes it can.
> 
> No it can't :-)
> 
> >  Its main job is to keep track and control the dependencies
> > between libraries.  It's just that sometimes thy don't do a particularly
> > good job of it ;-)
> >
> 
> This works only if this dependencies are know at link time, but look at the
> source of Dynloader. You can retrieve address of any (public)symbol inside a
> library dynamicly at runtime. Now you have the entry address and can pass it
> around. No linker will ever have a chance to know what you do in your
> programm. As soon as you use such things (and Dynloader uses them), the
> linker doesn't have chance!

You're confusing the dynamic and static linkers.  The dynamic linker is
what he was referring to; it knows what libraries it resolves symbols
to.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         [EMAIL PROTECTED]         |  |       [EMAIL PROTECTED]      |
\--------------------------------/  \--------------------------------/

Reply via email to