[Patch] ld testsuite: Fix some FAILs caused by missing -fpic.

nick clifton nickc@redhat.com
Tue Dec 6 10:33:00 GMT 2011


Hi David,

> Since the beginning of time (or at least CVS), there has been special
> code in the ld testsuite to omit -fpic from the flags used for building
> shared libraries on MIPS. This worked for very old versions of GCC where
> the generated code was always PIC by default.

How old is "very old" ?

> I propose that we remove this special handling and pass -fpic, just as
> we do for almost all other targets. Doing this fixes about twenty FAILs.

If "very old" actually includes any of the 4.x versions of gcc then I 
would be inclined to say that a better fix would be to check the gcc 
version number and only omit "-fpic" if it is not needed.

Cheers
   Nick



More information about the Binutils mailing list