当我对共享库使用“file”命令时,“stripped, with debug_info”是什么意思?

Cha*_*ler 5 c c++ linux shared-libraries

当我在共享库上使用“文件”命令时:

file shared_library.so
Run Code Online (Sandbox Code Playgroud)

表明

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

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

Mik*_*han 5

但我不明白为什么剥离的库仍然有“with debug_info”。

这将是 的效果strip --only-keep-debug file。来自男人带

--仅保留调试

剥离文件,删除 --strip-debug 不会剥离的任何部分的内容,并保持调试部分完好无损。在 ELF 文件中,这会保留输出中的所有注释部分。

...