call gcc no -fpic/-fpie only -pie?

Nick Clifton nickc@redhat.com
Fri Jul 1 11:11:00 GMT 2016


Hi Zet,

> But the ld manual said if specify -pie should specify -fpic etc.

Where does it say this ?  I tried looking for it, but did not find it
anywhere.

> static relocation type only has R_386_32/R_386_PC32, they should be
> changed to dynamic relocation type R_386_COPY/R_386_GLOB_DAT etc by
> ld. If so why not manual said that( if specify -pie should specify
> -fpic etc) ? If not , what the details that cannot be changed to
> dynamic link?

This sounds like a documentation error, but I will need to see the 
source for the documentation first.

> like the -pie there is a similar option -shared, under the same
> questions what about -shared?

This also ought to be reviewed.

Cheers
  Nick



More information about the Binutils mailing list