]> Cypherpunks repositories - gostls13.git/commit
cmd/link: combine all string data into one symbol
authorDavid Crawshaw <crawshaw@golang.org>
Thu, 3 Mar 2016 15:51:30 +0000 (10:51 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 3 Mar 2016 19:57:16 +0000 (19:57 +0000)
commit0c84c4f19cedd13445c64fcdc409b4821ff9a7d2
treef9d4fd68dc5da014447a64af3f39a0c206a9a722
parent7e92c86df25b70f486b99ed6a10b623b9fd20de4
cmd/link: combine all string data into one symbol

This CL introduces a mergestrings pass after the reachability
analysis to combine all reachable go.string."..." character data
symbols into a single symbol.

Shrinks juju by 1.2mb (1.5%).
Shrinks cmd/go by 0.5% when building without DWARF.
No noticable effect on linker speed.

Change-Id: I2ba3e60bf418f65766bda257f6ca9eea26d895b6
Reviewed-on: https://go-review.googlesource.com/20165
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/mergestrings.go [new file with mode: 0644]
src/cmd/link/internal/ld/pobj.go