]> Cypherpunks repositories - gostls13.git/commit
cmd/link: propagate FromAssembly attribute when cloning symbols to external
authorCherry Mui <cherryyz@google.com>
Fri, 24 May 2024 17:19:35 +0000 (13:19 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 24 May 2024 20:26:10 +0000 (20:26 +0000)
commit5c7d7745387f240dbbd31940dce8be2b3000c53d
treea7fb9de3b229e1bdb33eb11df0396b1369b4da3c
parent23778fcb276b020d41f7bc8a46fb482a40638017
cmd/link: propagate FromAssembly attribute when cloning symbols to external

When a symbol is cloned to external (in order to edit it),
propagate the FromAssembly attribute, so the linker knows it is
(originally) an assembly symbol, and can treat it specially (e.g.
for stack maps).

This should fix the Linux/RISCV64 builder.

Change-Id: Icc956bcc43b79f328983a60835b05fd50f22326a
Reviewed-on: https://go-review.googlesource.com/c/go/+/587926
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/loader/loader.go