cmd/link: Go 1.4.2 ldflags -s still shows the line numbers of the stack trace #11622
Labels
Comments
-s does not strip line number information. -s is not tested and is not recommended as it is know to produce broken executables on multiple platforms. |
OK , I get it . I think this should be add into the golang document , as I was looking for some ideas to block the whole debugging messages |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What platform did I use for test:
Microsoft Windows 7 x86 , go 1.4.2 windows x86
What code did I use for test:
What command did I use for complier the test program:
What am I expected to see :
What exactly did the complier show:
So... Is it designed to always shows the line numbers ?
There may be security reason that some projects may needs to hide or strip some unexpected printing messages. So I just curious😄
The text was updated successfully, but these errors were encountered: