c++ - 当我对共享库使用 "stripped, with debug_info"命令时, "file"是什么意思?

标签 c++ c linux shared-libraries

当我在共享库上使用"file"命令时:

file shared_library.so

显示

shared_library.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /system/bin/linker, stripped, with debug_info

剥离”意味着它被剥离了。但我不明白为什么剥离的库仍然有“with debug_info”。

最佳答案

But I don't understand why stripped library still have "with debug_info".

这将是 strip --only-keep-debug file 的效果。来自 man strip :

--only-keep-debug

Strip a file, removing contents of any sections that would not be stripped by --strip-debug and leaving the debugging sections intact. In ELF files, this preserves all note sections in the output.

...

关于c++ - 当我对共享库使用 "stripped, with debug_info"命令时, "file"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54338807/

相关文章:

c++ - 删除复制构造函数会破坏继承的构造函数

c++ - 对 `USER_ERROR__inconsistent_build_configuration__see_dlib_faq_1_' 的 undefined reference

python - import ed25519._ed25519 适用于 powershell 但不适用于 GAE

c++ - 标准 C 函数 : Check for -1 or 0?

linux - g77 编译错误(找不到 crt1.o、crti.o、-lgcc_s)

c++ - 在 Linux 上中止线程 sleep

linux - 我怎样才能保留数字以便以后对它们进行排序?

c++ - 如何知道安装了哪个版本的 firefox?

比较和解释两个时间计数器

c++ - 如何在 CMake 中链接 SDL2?