[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Simulavr-devel] Missing -fPIC when compiling code for .so files?
From: |
Michael Hennebry |
Subject: |
Re: [Simulavr-devel] Missing -fPIC when compiling code for .so files? |
Date: |
Tue, 8 Jan 2008 12:39:03 -0600 (CST) |
On Tue, 8 Jan 2008, Joerg Wunsch wrote:
> Indeed, I cannot see a -fPIC anywhere anyhow during the compilation
> before. How is it supposed to work at all then? Is it just working
> accidentally on the i386 platform since omitting -fPIC is perhaps
> benign there?
One of the tweaks I had to make when
compiling the first time was to add -fPIC.
My recollection is that not having -fPIC or one
of its relatives results in self-modifying code.
SELinux objected to this by not letting my program run very long.
I don't remember how complex the modifications
are or how it affects subsequent efficiency.
BTW When I tried to send this before, I got a bounce.
See the attachment, if it survives.
--
Michael address@hidden
"I AM DEATH, NOT TAXES. *I* TURN UP ONLY ONCE." -- Death
returned.txt
Description: Text document