DLL vs Shared Library
Phillip Susi
psusi at cfl.rr.com
Thu Mar 30 22:29:49 UTC 2006
Phillip Susi wrote:
> Nevermind, I was confusing position-independent with relocatable.
> Technically you are correct; windows went with relocatable because it
> gives better execution speed.
>
Wait... now that I've thought about it some more I think I was right the
first time. You can build shared libs with pic, and on some platforms
without proper mmu support that is the only way to support shared libs,
but I believe that on intel pc platforms shared libs are generally NOT
built this way; they are just relocatable and ld.so has to fix them up
when loaded. You can use the prelink utility to perform the fixups in
advance so they don't have to be done at load time, provided that there
isn't a memory space collision.
More information about the ubuntu-users
mailing list