[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: -fpie -pic question.



Balint Cristian wrote:

> 	I have a question about exec-shield, i compiled with -fpic -pic passed to gcc an aplication (qmail for eg)
>  on FC1 and how can i know that really work the exec-shield stuff on the aplication ?

I assume the -fpic and -pic above really mean -fpie and -pie.

In that case, run this

readelf -a PROGRAM | egrep -q 'Type:[[:space:]]*DYN' &&
readelf -a PROGRAM | egrep -q '  DEBUG[[:space:]]*$' &&
echo "is PIC"

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]