detect glibc version based on libpthread.so
Hi,all
I have a libpthread.so,want to know which glibc version compiled this pthread.so run Code:
string libpthread.so | grep GLIBC Code:
GLIBC_2.0 thanks in advance Lynn |
Quote:
Code:
readelf -V libpthread.so Code:
nptl_version I tried this GNU grep out on Gentoo (with glibc-2.7 on amd64) and Ubuntu 7.10 (glibc-2.6.1 on i386), and it gave what you wanted (I am not sure if it will work with earlier or alternate arch versions of glibc): Code:
grep -az -B30 'Native POSIX Threads Library' libpthread.so Code:
grep -az -B30 'Native POSIX Threads Library' libpthread.so | tr '\0' '\n' | head -1 |
All times are GMT -5. The time now is 09:02 AM. |