cmd/link: accepts nonsense ldflags #25085
Closed
Labels
Comments
The syntax |
Oh. That makes sense, I just didn't even consider that that syntax would apply to ldflags. I'm not sure what good it is, but it's not a bug. Thanks. |
Change https://golang.org/cl/109355 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Apr 26, 2018
Doesn't cause an error, see #25085. But we should fix it nonetheless. Change-Id: I7b6799e0a95475202cacefc3a7f02487e61bfd31 Reviewed-on: https://go-review.googlesource.com/109355 Reviewed-by: Heschi Kreinick <heschi@google.com>
Change https://golang.org/cl/142003 mentions this issue: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I don't think this should succeed:
I haven't checked the code, but from strace it looks like go build is swallowing ldflags that don't start with a
-
.The text was updated successfully, but these errors were encountered: