Re: [fpc-pascal] Re: Problems with "relocation errors"

2010-11-06 Thread Sven Barth
On 06.11.2010 18:11, Marco van de Voort wrote: In our previous episode, Sven Barth said: 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 relocatabl

Re: [fpc-pascal] Re: Problems with "relocation errors"

2010-11-06 Thread Marco van de Voort
In our previous episode, Sven Barth said: > > > > 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

Re: [fpc-pascal] Re: Problems with "relocation errors"

2010-11-06 Thread dibo20
W dniu 06.11.2010 08:25, leledumbo pisze: 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. So where else can I put this switch to fix lNet compiler errors? ___

Re: [fpc-pascal] Re: Problems with "relocation errors"

2010-11-06 Thread Sven Barth
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 a