I am using VS-android framework to compile Android shared object directly from Microsoft Visual Studio 2012 + Android NDK. I disassembled my own .so file using IDA and was horrified to see that all my code is completely visible (names of the functions, names of the data buffers, names of classes, etc).
I want to remove all that debug and unneeded symbols so it would be hard to understand my code by disassembling it.
The compilation process is as following:
I have tried the following solutions and they didn't work:
What am I missing here?
P.s. - I am completely new to "stripping symbols" so sorry if my question is a bit silly.
-
I found a way to do this.
arm-linux-androideabi-g++.exe
).-fvisibility=hidden -s
both to compiler and to the linker. You need both switches.__attribute visibility
at all.