]> Cypherpunks repositories - gostls13.git/commit
cmd/link: mangle function names with ABI on PE
authorCherry Zhang <cherryyz@google.com>
Wed, 24 Mar 2021 15:19:19 +0000 (11:19 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 24 Mar 2021 16:45:00 +0000 (16:45 +0000)
commitfd5e0bd385660275a8049a2499e0bbbffd465bc8
tree34e33f65fa52c2ad7eac75df9a50f7c4323fd9fd
parent6f62f852efca58b99fc421fdbb405f2620a46e0f
cmd/link: mangle function names with ABI on PE

When ABI wrappers are used, we may end up with two functions
having the same name. On ELF we mangle the name with ABI. Do the
same for PE.

TODO: other platforms?

Change-Id: If89f214a6286bc28c062c1aa1bad78dc353a9231
Reviewed-on: https://go-review.googlesource.com/c/go/+/304432
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/ld/symtab.go