linux c 学习 GUN glibc 信息查看
Posted rongfengliang-荣锋亮
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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)
以上是关于linux c 学习 GUN glibc 信息查看的主要内容,如果未能解决你的问题,请参考以下文章