[Q] Position independent code

Cliff Tsai clifftsai@minecard.com.tw
Wed Apr 4 01:10:00 GMT 2001


----- Original Message -----
From: "Kim, Jeong-Hwan" <KimJeongHwan@lge.com>
To: <crossgcc@sources.redhat.com>
Sent: Wednesday, April 04, 2001 3:01 PM
Subject: [Q] Position independent code


> Hi,
>
> If makefile does not contain -fpic (-fPIC) compile option, is the
generated
> code not Position Independent Code ?

PIC is default option.

> (using gcc for powerpc)
> If map file displays no data in .got sector, is the code not Position
> Independent Code?

.got is a table for dynamic linking,if you generate a library with "-shared"
there should be a got table.


>
>
> Kim
>
>
>
> ------
> Want more information?  See the CrossGCC FAQ,
http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to
crossgcc-unsubscribe@sourceware.cygnus.com
>
>



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list