]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't merge symbols on riscv64 when dynamic linking
authorMeng Zhuo <mengzhuo1203@gmail.com>
Thu, 12 Sep 2024 11:46:20 +0000 (19:46 +0800)
committerMeng Zhuo <mengzhuo@iscas.ac.cn>
Sat, 8 Feb 2025 06:55:44 +0000 (22:55 -0800)
commit215de81513286c010951624243c2923f7dc79675
tree769a823705075caefa7ffc8bebb500552f04c9d5
parenta4fcfaa1676f40a1dc5879cdabe98471c6054daf
cmd/compile: don't merge symbols on riscv64 when dynamic linking

Each plugin is compiled as a separate shared object,
with its own symbol table. When dynamic linking plugin symbols
are resolved within the plugin's scope, not globally merged to
avoid conflicts.

Change-Id: I9e6986085855c17fbd6c39b937cb6129d216f5e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/435015
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/ssa/_gen/RISCV64.rules
src/cmd/compile/internal/ssa/rewriteRISCV64.go