]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link/internal/loader: preprocess numeric constants earlier
authorThan McIntosh <thanm@google.com>
Wed, 22 Apr 2020 15:35:03 +0000 (11:35 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 22 Apr 2020 18:12:02 +0000 (18:12 +0000)
commit25992d025f01d27bd7e38d45daa95e420d56ece5
treeb8f6d6f108d2a8f3f093e15d319b72f69d398060
parent45bd3b1bc4aa36ef313899fa372c23d850380b12
[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>
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/loader/loader.go