At tip, sys.BuildModeSupported(runtime.Compiler, "c-shared", "windows", "arm64") reports false.
https://tip.golang.org/doc/go1.17#windows suggests the windows/arm64 port supports cgo, and discussion in CL 323970 CL 323992 points out that cgo support may imply that c-shared build mode should also be turned on, and possibly was missed. This issue is filed to ask and find out.
@rsc, do you know if sys.BuildModeSupported working as intended for Go 1.17 or does it need to be updated?