Search code examples
glibcunix-ar

glibc version used while building .a file


Is there a way to find out from .a file what version of glibc is expected or was used when building the .a?


Solution

  • It's not a meaningful question about an ar file or a .o file. All they record is naked symbol names. When you make a shared object or an executable, the linker gives you symbols references like time@@GLIBC_2.2.5 for the undefined symbols.