]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: create symbol updated lazily in amd64 adddynrel
authorThan McIntosh <thanm@google.com>
Fri, 24 Apr 2020 15:07:17 +0000 (11:07 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 24 Apr 2020 22:56:22 +0000 (22:56 +0000)
commit42cca1a7fee916bb4ba769cb2db259ef6ec1c179
treed64b1f5c13d96daf8741fad72e03ccfd655f9e96
parent027055240f55b5664b760c13ddcc938e023e2dfe
[dev.link] cmd/link: create symbol updated lazily in amd64 adddynrel

Tweak the code in the amd64 version of adddynrel to avoid creating a
symbol updated for the symbol being processed until it's clear we need
to alter its relocations. This should help performance for the
PIE+internal linking scenario.

Reviewed-on: https://go-review.googlesource.com/c/go/+/229866
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Change-Id: Id25adfd81a5bbd2dde0f80a83b976397ba6abfb5
Reviewed-on: https://go-review.googlesource.com/c/go/+/230026
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/amd64/asm.go
src/cmd/link/internal/ld/data.go