[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 17:09:53 -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 firt 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.
--
Michael address@hidden
"Weak, but not negligible." -- Richard Feynman on gravity