Re: linker

2011-05-01 Thread Garry T. Williams
On Sunday, May 01, 2011 14:33:53 Patrick Dupre wrote: > cannot restore segment prot after reloc: Permission denied at That's probably from Selinux. You need to link with -fpic . -- Garry Williams -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options

Re: linker

2011-05-01 Thread Michael Hennebry
On Sun, 1 May 2011, Patrick Dupre wrote: > 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-t

Re: linker

2011-05-01 Thread Patrick Dupre
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&#x

Re: linker

2011-05-01 Thread JD
On 05/01/11 11:03, Tom Horsley wrote: > On Sun, 01 May 2011 13:58:53 -0400 > Genes MailLists wrote: > >> Sounds more like a shared library not static to me ... > Could be, in which case you need different options > and programs. For one thing you probably want to > compile the objects with -fpic

Re: linker

2011-05-01 Thread JD
On 05/01/11 10:51, Tom Horsley wrote: > On Sun, 1 May 2011 18:47:14 +0100 (BST) > Patrick Dupre wrote: > >> 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 excutab

Re: linker

2011-05-01 Thread Tom Horsley
On Sun, 01 May 2011 13:58:53 -0400 Genes MailLists wrote: > Sounds more like a shared library not static to me ... Could be, in which case you need different options and programs. For one thing you probably want to compile the objects with -fpic (I don't right offhand remember the options for li

Re: linker

2011-05-01 Thread Genes MailLists
On 05/01/2011 01:51 PM, Tom Horsley wrote: > On Sun, 1 May 2011 18:47:14 +0100 (BST) > Patrick Dupre wrote: > >> 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 e

Re: linker

2011-05-01 Thread Tom Horsley
On Sun, 1 May 2011 18:47:14 +0100 (BST) Patrick Dupre wrote: > 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,

linker

2011-05-01 Thread Patrick Dupre
Hello, 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). Thank for your help. -- --- ==