Thank,
I does help. However, I have another problem, and I not sure that it is does to the linker. It is a perl application calling my own c routines. I made tons of them but here I get:
Can't load '/home/pdupre/perl_lib/i386-linux-thread-multi/auto/Absor_satur/Absor_satur.so' for module Absor_satur: /home/pdupre/perl_lib/i386-linux-thread-multi/auto/Absor_satur/Absor_satur.so: cannot restore segment prot after reloc: Permission denied at /usr/lib/perl5/DynaLoader.pm line 200. at ./Profile.pl line 22
I do not know how to debug this !
I wish to link several .o files to make only one .o file not executable (it will relinked later). I would like to first make a prelinked file easier to then link them to the excutable file (ie. with a main).
ld -r can do that, but are you sure you don't just want to stick all the .o files in an archive with ar and link with that static library later?