来自 ld.so 和 ld-linux.so 的人
部分文件:
lib*.so* 共享库
从 glibc (./elf/ldconfig.c) :
712 /* Does this file look like a shared library or is it a hwcap
713 subdirectory? The dynamic linker is also considered as
714 shared library. */
715 if (((strncmp (direntry->d_name, "lib", 3) != 0
716 && strncmp (direntry->d_name, "ld-", 3) != 0)
717 || strstr (direntry->d_name, ".so") == NULL)
718 && (
719 #ifdef _DIRENT_HAVE_D_TYPE
720 direntry->d_type == DT_REG ||
721 #endif
722 !is_hwcap_platform (direntry->d_name)))
723 continue;
看起来您必须选择一个以 lib 开头的名称... libc 使用它来确定文件是否可能是共享库。