码迷,mamicode.com
首页 > 系统相关 > 详细

linux c 学习 GUN glibc 信息查看

时间:2019-12-18 11:14:58      阅读:103      评论:0      收藏:0      [点我收藏+]

标签:nes   sso   art   library   war   ati   rop   ldd   data-   

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 信息查看

标签:nes   sso   art   library   war   ati   rop   ldd   data-   

原文地址:https://www.cnblogs.com/rongfengliang/p/12058375.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!