Reputation: 386
When I use "file" command on a shared library:
file shared_library.so
It shows
shared_library.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /system/bin/linker, stripped, with debug_info
"stripped" means It is stripped. But I don't understand why stripped library still have "with debug_info".
Upvotes: 6
Views: 2422
Reputation: 61610
But I don't understand why stripped library still have "with debug_info".
This would be the effect of strip --only-keep-debug file
. From 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.
...
Upvotes: 5