On 06.11.2010 08:25, leledumbo wrote:

AFAIK PE DLLs are always relocatable while it's not true for ELF SOs. So,
whenever you need to create it, always pass -fPIC to ALL used units and
their dependencies.

PE images themselves aren't relocatable. All addresses are relative to the defined base address. The loader must manually recalculate the addresses if the binary can't be loaded at the base address.

See also here: http://en.wikipedia.org/wiki/Portable_Executable#Relocations

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to