Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-07

Shared Object Libraries non-PIC

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

L505

How does the calling program know that it's not PIC (position independant code)?

i.e. how would you stop a calling program from thinking so? Is it based on what directory you put the file in?

How do you force a linux program to call a new .SO copy per each process.

Reply by email

Jonas Maebe
to L505
L505 wrote
How does the calling program know that it's not PIC (position independant code)?

The linker can find this out while loading the dynamic library (if there are relocation entries in text sections, then it's no PIC). You should not have to do anything special yourself.

Jonas

Reply by email