I forgot the credit reference: gcc PIE support adapted from
code written by Jakub Jelinek  <jakub at redhat.com> and
included in later gcc releases.

On Tuesday 11 November 2008 6:48:20 pm Kurt Miller wrote:
> CVSROOT:      /cvs
> Module name:  src
> Changes by:   [EMAIL PROTECTED]       2008/11/11 16:48:19
> 
> Modified files:
>       gnu/usr.bin/gcc/gcc: flags.h gcc.c toplev.c varasm.c 
>       gnu/usr.bin/gcc/gcc/config/arm: openbsd.h 
>       gnu/usr.bin/gcc/gcc/config/mips: openbsd.h 
>       gnu/usr.bin/gcc/gcc/config/sparc: openbsd64.h 
>       gnu/usr.bin/gcc/gcc/doc: invoke.texi 
> 
> Log message:
> Add support for position independent executables. This adds compile flags
> -fpie & -fPIE which are similar to -fpic & -fPIC except that the resulting
> objects can not be used in shared libraries due to an additional
> optimization for pie. This also adds the -pie link flag which produces a
> pie executable given pic or pie objects.  Combining -pie with -static is
> currently disabled. The only gcc3 arch that doesn't support pie at moment
> is arm due to binutils relocation bugs.
> 
> ok kettenis@

Reply via email to