Madani, Srikanth, VF-DE wrote:
The binary produced with the -g debugging flag, and then stripped will have no symbols; whereas the binary produced without the -g flag will.
That's an oversimplification; if you use strip --strip-debug, you will end up with the same binary as if you had never used -g.
If you use any more aggressive options for strip, then yes, you will lose other symbols that may have been there for legitimate reasons.