Skip to content

cmd/compile: document -trimpath #8999

@gopherbot

Description

@gopherbot

by chetan.hs:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html  If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What does 'go version' print?
go version go1.3.3 linux/amd64

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

1. Build any go program with ldflags -s option. Ex: go build -ldflags="-s" foo
-o foo.out
2. Extract the strings from the resulting binary and check for the current username,
build path etc. Ex: strings foo.out | grep <current_username>

What happened?
  - The debug symbols are still present in the output binary.

What should have happened instead?
  - This information should have been stripped out from the output binary.

Please provide any additional information below.
  - This option used to work in go v1.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions