]> Cypherpunks repositories - gostls13.git/commit
cmd/link: don't link the same dylib multiple times
authorHiroshi Ioka <hirochachacha@gmail.com>
Thu, 1 Jun 2017 07:23:40 +0000 (16:23 +0900)
committerIan Lance Taylor <iant@golang.org>
Mon, 14 Aug 2017 18:48:28 +0000 (18:48 +0000)
commit1f8433c66ae945f6d1e4a6bc8c6c5efebeae0dbe
treec78b95fba455710854cca7816fa642e421c9c8e3
parentbac1cc0d1675a0e958b366837e6230f4f09c2a5b
cmd/link: don't link the same dylib multiple times

Also, unexport Machoadddynlib

n=`go test -c crypto/x509 && otool -l x509.test | grep libSystem | wc -l`

Before this CL, n = 3.
After this CL, n = 1.

on my environment.

Change-Id: Ic7b8157435cc85086404860dc6c84eb0aecc5d19
Reviewed-on: https://go-review.googlesource.com/44771
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Avelino <t@avelino.xxx>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/go.go
src/cmd/link/internal/ld/macho.go