detecting non-PIC in shared lib on Darwin?
Jack Howarth
howarth@bromo.msbb.uc.edu
Thu Apr 27 01:26:00 GMT 2006
I recall that the Debian folks proposed a method of detecting non-PIC
code in their shared libs using...
readelf -d foo.so | grep TEXTREL
Does anyone know if some mechanism like this is possible for Darwin
shared libraries? I ask because we just discovered that the gmp developers
have been building non-PIC code (due to the usage of -fast without -fPIC)
in the MacOS X builds. It would be nice to be able to check for the non-PIC
code in all the shared libs on MacOS X. Thanks in advance for any info.
Jack
More information about the Gcc
mailing list