sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 8640] New: Position Independant Executables
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 8640] New: Position Independant Executables
- Date: Thu, 21 Apr 2005 03:23:56 -0700 (PDT)
http://bugs.sourcemage.org/show_bug.cgi?id=8640
Summary: Position Independant Executables
Product: Codex
Version: devel grimoire
Platform: All
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: devel
AssignedTo: devel AT sourcemage.org
ReportedBy: Thomas.Houssin AT sourcemage.org
CC: sm-sorcery-bugs AT lists.ibiblio.org
It's now possible to build position independant executables (PIE), using flag
-fpie or -fPIE in gcc. These programs must be linked with -pie.
This can only be passed for executables.
Using this should give optimisations a greater effect. But it also increases
security, especially when used with PaX Address Space Layout Randomization ;
more infos on
http://www.linuxfromscratch.org/hlfs/view/unstable/glibc/chapter02/pie.html
Not all executables can be compiled like this.
HLFS solution is to add filters to gcc spec to pass flags only to executables.
Then we could "manually" disable PIE in spells it breaks (like we do with
PIC).
Another solution may be to a function in grimoire (something like
make_single) :
when called in a spell, it'll check if PIE is enabled, and then add the flags
to
CFLAGS if needed.
Ideas and suggestions ?
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [SM-Sorcery-Bugs] [Bug 8640] New: Position Independant Executables, bugzilla-daemon, 04/21/2005
Archive powered by MHonArc 2.6.24.