linker
Patrick Dupre
patrick.dupre at york.ac.uk
Sun May 1 18:33:53 UTC 2011
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?
>
--
---
==========================================================================
Patrick DUPRÉ | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: patrick.dupre at york.ac.uk
==========================================================================
More information about the users
mailing list