diff options
| author | Than McIntosh <thanm@google.com> | 2018-06-28 16:10:19 -0400 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-07-03 14:48:40 +0000 |
| commit | f00bfb385ba7f9148a3f3af6c4882a3e53c3b536 (patch) | |
| tree | 529fa10404e9af518ee7314f31b888d55d75edcf /src/cmd/internal/obj | |
| parent | 32bc0976f9c4333e4a9247d6acc908972c6c5d79 (diff) | |
| download | go-f00bfb385ba7f9148a3f3af6c4882a3e53c3b536.tar.xz | |
cmd/link: split off 'Dynimp' string fields to reduce sym.Symbol size
The linker's sym.Symbol struct contains two string fields, "Dynimplib"
and "Dynimpvers" that are used only in very specific circumstances
(for many symbols, such as DWARF syms, they are wasted space). Split
these two off into a separate struct, then point to an instance of
that struct when needed. This reduces the size of sym.Symbol so as to
save space in the common case.
Updates #26186
Change-Id: Id9c74824e78423a215c8cbc105b72665525a1eff
Reviewed-on: https://go-review.googlesource.com/121916
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/internal/obj')
0 files changed, 0 insertions, 0 deletions
