diff options
author | Than McIntosh <thanm@google.com> | 2020-04-22 11:35:03 -0400 |
---|---|---|
committer | Than McIntosh <thanm@google.com> | 2020-04-22 18:12:02 +0000 |
commit | 25992d025f01d27bd7e38d45daa95e420d56ece5 (patch) | |
tree | b8f6d6f108d2a8f3f093e15d319b72f69d398060 /src/cmd/link/internal/ld/lib.go | |
parent | 45bd3b1bc4aa36ef313899fa372c23d850380b12 (diff) | |
download | go-25992d025f01d27bd7e38d45daa95e420d56ece5.tar.gz go-25992d025f01d27bd7e38d45daa95e420d56ece5.zip |
[dev.link] cmd/link/internal/loader: preprocess numeric constants earlier
Change the timing for preprocessing of integer/floating point constant
symbols so that we populate them with content at an earlier stage.
This is needed to allow them can be picked up by the loader-API
version of dodata().
Change-Id: Icf09f4f4b318b4f77e11d4a0f0a9cbecd76a1d6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/229438
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Diffstat (limited to 'src/cmd/link/internal/ld/lib.go')
-rw-r--r-- | src/cmd/link/internal/ld/lib.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go index 4bc7187292..429c2641fb 100644 --- a/src/cmd/link/internal/ld/lib.go +++ b/src/cmd/link/internal/ld/lib.go @@ -561,7 +561,7 @@ func (ctxt *Link) loadlib() { } // Add non-package symbols and references of externally defined symbols. - ctxt.loader.LoadNonpkgSyms(ctxt.Syms) + ctxt.loader.LoadNonpkgSyms(ctxt.Arch) // Load symbols from shared libraries, after all Go object symbols are loaded. for _, lib := range ctxt.Library { |