-fpie -pic question [corection].

rezso at rdsor.ro rezso at rdsor.ro
Fri Jan 16 18:56:51 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.


Oh s*it of course -fpie(-fPIE) linking with -pie.

sorry for induced errors on the list ...


>
> In that case, run this
>
> readelf -a PROGRAM | egrep -q 'Type:[[:space:]]*DYN' &&
> readelf -a PROGRAM | egrep -q '  DEBUG[[:space:]]*$' &&
> echo "is PIC"
>

works :)

really thanks for debug my message too ....

>
>
> --
> ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain
> View, CA ❖
>
>
> --
> fedora-devel-list mailing list
> fedora-devel-list at redhat.com
> http://www.redhat.com/mailman/listinfo/fedora-devel-list







More information about the fedora-devel-list mailing list