]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/link: preserve symbol attributes when cloning to external
authorCherry Mui <cherryyz@google.com>
Fri, 15 Apr 2022 15:52:01 +0000 (11:52 -0400)
committerHeschi Kreinick <heschi@google.com>
Wed, 6 Jul 2022 20:32:07 +0000 (20:32 +0000)
commitb80ae102217ad4fefb7e72e060500f42d252a50a
treec835fd8e3b4f744121997323094cffa7d607c9b0
parente5ca37df46eb9be9002b4beb8095ddf82e822ce2
[release-branch.go1.18] cmd/link: preserve symbol attributes when cloning to external

There are some symbol attributes that are encoded in the object
file. Currently, they are lost when cloning a symbol to external.
Copy them over.

Also delete CopyAttributes as it is no longer called anywhere.

For #53107. Backporting this CL as the fix of #53107 depends on
it.

Change-Id: I1497e3223a641704bf35aa3e904dd0eda2f8ec3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/400574
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
(cherry picked from commit df08c9a82152fd6f2b2811db03b40fea8b6e5e9e)
Reviewed-on: https://go-review.googlesource.com/c/go/+/408820
src/cmd/link/internal/loader/loader.go