]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix -buildmode=pie / -linkshared combination
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 13 Sep 2016 01:29:13 +0000 (13:29 +1200)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 13 Sep 2016 02:40:30 +0000 (02:40 +0000)
commit8f9671d11a219d8fc9a6176ddf9939e743982ffc
tree00b374d07cb9b4d2979d8f8e6190803dd467a6b3
parent38d35e714a55f2e4bb67caadac7e61f8c1967d88
cmd/link: fix -buildmode=pie / -linkshared combination

main.main and main.init were not being marked as reachable.

Fixes #17076

Change-Id: Ib3e29bd35ba6252962e6ba89173ca321ed6849b9
Reviewed-on: https://go-review.googlesource.com/28996
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
misc/cgo/testshared/shared_test.go
src/cmd/link/internal/ld/deadcode.go