Does NDK strip debug info?

android-ndk, debug-symbols, gdb, linker, linux

Solution

Yes it does. The final step of NDK build is copying the `.so` file from `obj` directory to `lib`, stripping the symbols on the way. You can see how much smaller the file gets in `lib/armeabi`.

Problem

I'm building an NDK shared library with a static library (.a) as one of the inputs. The static library has debug info in GDB format. Does the debug info end up in the final .SO? How can I check?

Original source