linux c 学习 GUN glibc 信息查看

gun glibc 信息查看方法

  • 方式
    共享库作为可执行文件,默认位置可能为/lib/libc.so.6信息如下:
 
GNU C Library (GNU libc) stable release version 2.17, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.8.5 20150623 (Red Hat 4.8.5-39).
Compiled on a Linux 3.10.0 system on 2019-08-06.
Available extensions:
 The C stubs add-on version 2.1.2.
 crypt add-on version 2.1 by Michael Glad and others
 GNU Libidn by Simon Josefsson
 Native POSIX Threads Library by Ulrich Drepper et al
 BIND-8.2.3-T5B
 RT using linux kernel aio
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

如果位置不对的解决方法,可以通过查看依赖,使用ldd,比如ldd mydemo,信息如下:

ldd mydemo
 linux-vdso.so.1 => (0x00007ffd3dff9000)
 libc.so.6 => /lib64/libc.so.6 (0x00007fb79a05b000)
 /lib64/ld-linux-x86-64.so.2 (0x00007fb79a429000)

posted on 2019-12-18 10:09  荣锋亮  阅读(417)  评论(0编辑  收藏  举报

导航