Re: Does exec-shield with -fpie work?

From: Arjan van de Ven
Date: Tue Jun 15 2004 - 03:34:40 EST



> te pc-16 ~ 70> !gcc
> gcc -fPIE -fpic -o ./testsc ./testsc.c
>

you need to pass -pie as option as well; -fpie for the compiler, -pie for the linker,
eg

gcc -fPIE -pie -o ./testsc ./testsc.c

Attachment: signature.asc
Description: This is a digitally signed message part