On Fri, Nov 4, 2016 at 7:39 AM, Nick Craig-Wood <
ni...@craig-wood.com> wrote:
> I know I can build go binaries passing the `-s` flag to the linker to
> strip them and make them smaller. In my tests (with rclone) it makes it
> 60% of the size so a significant saving. I'd like to enable this for
> binaries I distribute to end users.
>
> go install -ldflags "-s"
>
> However what are the consequences? The link docs say what it does but
> not what the consequences are.
>
>
https://golang.org/cmd/link/
>
> -s
> Omit the symbol table and debug information.
>
> I can see that I still get source code lines in my backtraces which is
> very important to me but what am I losing? Why wouldn't I want to do this?