]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix -s with external linking
authorRuss Cox <rsc@golang.org>
Mon, 29 Jun 2015 17:12:10 +0000 (13:12 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 29 Jun 2015 19:49:38 +0000 (19:49 +0000)
commit34846aef78e2e27da8eaadff2d9ea78cd99d491d
treee6fb070c04c3fabb17f07868a160359ef762ce90
parent27edd7209e1c21fdd5143a725c91719791e9f1f5
cmd/link: fix -s with external linking

This code used to only be run for ELF, with the predictable
result that using -s with external linking broke on Windows and OS X.
Moving it here should fix Windows and does fix OS X.

CL 10835 also claims to fix the crash on Windows.
I don't know whether it does so correctly, but regardless,
this CL should make that one a no-op.

Fixes #10254.

Change-Id: I2e7b45ab0c28568ddbb1b50581dcc157ae0e7ffe
Reviewed-on: https://go-review.googlesource.com/11695
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/dist/test.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go