[hellogcc] libc.so

  • From: Liu <proljc@xxxxxxxxx>
  • To: hellogcc <hellogcc@xxxxxxxxxxxxx>
  • Date: Tue, 27 Dec 2011 17:28:49 +0800

如果是glibc的话,cat一下,其实是个文本文件。

x64如下所示
xx@ubuntu:~$ cat /usr/lib/x86_64-linux-gnu/libc.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib/x86_64-linux-gnu/libc.so.6
/usr/lib/x86_64-linux-gnu/libc_nonshared.a  AS_NEEDED (
/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ) )

一看就明白吧。

Other related posts:

  • » [hellogcc] libc.so - Liu