Re: ASLR and -fpic

ratheesh kannoth <[email protected]> Wed, 12 Mar 2014 16:47:14 +0530
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <CAGZFCEEqvfxcjj1D9=aTcWkJZds5FkOF+v6me3pDk4uGyONX-w@mail.gmail.com>
so if i enable  ASLR  using   /proc/sys/kernel/randomize_va_space,
already compiled programs ( with out fpic  ) will not be randomised ?

On Wed, Mar 12, 2014 at 4:24 PM, Raphael S Carvalho
<[email protected]> wrote:
>
>
>
> On Wed, Mar 12, 2014 at 7:47 AM, ratheesh kannoth <[email protected]>
> wrote:
>>
>> If we need ASLR  feature, should we compile executable with -fpic ?
>
> -fPIE -fstack-protector-all
>
>>
>>
>>
>>
>>
>>
>> -Ratheesh
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> linux-c-programming" in
>> the body of a message to [email protected]
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
>
>
> --
> Raphael S. Carvalho