How to tell if a ELF library/executable was built with -fpic versus -fPIC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Perhaps this belongs on the binutils list, but I'd like to know how if an ELF
library/executable was built with -fpic versus -fPIC.  I know each makes PIC
object code, with the difference being the size of the data model:

-msmall-data (-fpic)
-mlarge-data (-fPIC)

but I have some shared libraries I am linking against such that I don't know
which PIC option was used to build it.  Is there an ELF header I can check?

If this is the wrong list to post this, I will redirect to the binutils list.

Thanks,

Tom



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux