.so文件也是可执行的ELF二进制文件

许多人并不知道.so文件也是可执行的ELF二进制文件,执行它可以返回有用的信息。

试了一下,好像不太对,为啥在我的环境里报错了呢……先Mark一下

# file libz.so.1.2.7 
libz.so.1.2.7: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=ea8e45dc8e395cc5e26890470112d97a1f1e0b65, stripped
# ./libz.so.1.2.7
Segmentation fault
# 
Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.