View Full Version : how to now if an object was built with address independent code

August 4th, 2009, 08:51 AM

I was given an ar file with some objects , I have to include these object in 10+ different programs (unfortunately the compilation time is rather long ), so I though would be a nice idea to generate a dynamic library.

How can i know if the objects inside the ar were compiled with -fPIC (address independent ) option , with NM , or objdump or something similar ?