]> Cypherpunks repositories - gostls13.git/commit
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)
committerCherry Mui <cherryyz@google.com>
Fri, 15 Apr 2022 19:02:54 +0000 (19:02 +0000)
commitdf08c9a82152fd6f2b2811db03b40fea8b6e5e9e
tree824bf0ebf20684c9cf94605137198660b794a122
parent0c6d8bb109adfa188190b2e6de59b88853ded378
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.

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>
src/cmd/link/internal/loader/loader.go