Date: Mon, 21 May 2007 14:51:49 +0200 From: Alex Dupre <ale@FreeBSD.org> To: Harald Schmalzbauer <h.schmalzbauer@omnisec.de> Cc: freebsd-current@freebsd.org Subject: Re: What is -fPIE (GCC) good for? [Was: Re: strange "Exec format error" (gcc4.2 suspicious)] Message-ID: <465195E5.6000600@FreeBSD.org> In-Reply-To: <200705211441.23211.h.schmalzbauer@omnisec.de> References: <200705201954.00476.h.schmalzbauer@omnisec.de> <200705202130.55833.h.schmalzbauer@omnisec.de> <20070520184710.75db1335@kan.dnsalias.net> <200705211441.23211.h.schmalzbauer@omnisec.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Harald Schmalzbauer ha scritto: > a quick search told me that pie means Posix Independant Executable. Position, not Posix. > Has anybody a link handy where I can find an explanation why one would want to > have this? From Wikipedia: Position-independent executables (PIE) are executable binaries made entirely from position-independent code. While some systems only run PIC executables, there are other reasons they are used. PIE binaries are used in some security-focused Linux distributions to allow PaX or Exec Shield to use address space layout randomization to prevent attackers from knowing where existing executable code is during a security attack using exploits that rely on knowing the offset of the executable code in the binary, such as return-to-libc attacks. -- Alex Dupre
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?465195E5.6000600>