]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/ld: use usual flooding for c-archive
authorDavid Crawshaw <crawshaw@golang.org>
Thu, 16 Apr 2015 19:53:05 +0000 (15:53 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 16 Apr 2015 20:01:13 +0000 (20:01 +0000)
I said I removed this from cl/8711 in response to your comment, but
apparently I did not.

misc/cgo/testcarchive continues to pass on darwin/amd64.

Change-Id: I6410782f2a78bf117741628fb71cac56e289b590
Reviewed-on: https://go-review.googlesource.com/9010
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/ld/go.go

index 47e9933d83a666217dc6bc7db6c2ea95c81df2f6..f24a9e4e749c90a6a51503ca24aed6ffaf3c98b8 100644 (file)
@@ -622,7 +622,7 @@ func deadcode() {
                fmt.Fprintf(&Bso, "%5.2f deadcode\n", obj.Cputime())
        }
 
-       if Buildmode == BuildmodeShared || Buildmode == BuildmodeCArchive {
+       if Buildmode == BuildmodeShared {
                // Mark all symbols as reachable when building a
                // shared library.
                for s := Ctxt.Allsym; s != nil; s = s.Allsym {