注意到,gcc -shared
创建一个可执行文件,我刚刚得到了奇怪的想法来检查时,我尝试运行它......好结果是发生了什么段错误我自己的库.因此,对此感到好奇,我试图"运行"glibc(/lib/x86_64-linux-gnu/libc.so.6
在我的系统上).果然,它没有崩溃,但为我提供了一些输出:
GNU C Library (Debian GLIBC 2.19-18) stable release version 2.19, by Roland McGrath et al.
Copyright (C) 2014 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.4.
Compiled on a Linux 3.16.7 system on 2015-04-14.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU …
Run Code Online (Sandbox Code Playgroud)