]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link/internal/ld: include table of contents of c-archive output.
authorHyang-Ah (Hana) Kim <hyangah@gmail.com>
Mon, 8 Jun 2015 21:22:17 +0000 (14:22 -0700)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Tue, 9 Jun 2015 00:55:11 +0000 (00:55 +0000)
Change-Id: If11621985c0a5a1f2133cdc974f37fd944b93e5e
Reviewed-on: https://go-review.googlesource.com/10808
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/lib.go

index bf4ca55020d26e8bf3a965aab0c1a9636dd9f66c..ba906fbde3ba1630774b9a1edd64976f8c1e6021 100644 (file)
@@ -877,7 +877,7 @@ func archive() {
        }
 
        os.Remove(outfile)
-       argv := []string{"ar", "-q", "-c", outfile}
+       argv := []string{"ar", "-q", "-c", "-s", outfile}
        argv = append(argv, hostobjCopy()...)
        argv = append(argv, fmt.Sprintf("%s/go.o", tmpdir))