-fpie -pic question.

Ulrich Drepper drepper at redhat.com
Fri Jan 16 17:33:52 UTC 2004


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 ❖





More information about the fedora-devel-list mailing list