-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
all: cleanup ineffectual //go:linkname directives #42938
Comments
Change https://golang.org/cl/274732 mentions this issue: |
It's noisy and not doing any harm, and we still have an entire release cycle to revisit and address the issue properly. Updates #42938 Change-Id: I1de5cfb495a8148c9c08b215deba38f2617fb467 Reviewed-on: https://go-review.googlesource.com/c/go/+/274732 Trust: Matthew Dempsky <[email protected]> Run-TryBot: Matthew Dempsky <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]>
Change https://golang.org/cl/274573 mentions this issue: |
For golang/go#42938 Change-Id: I9d68a2436f3ce7402b3c6517a630d0272cf39071 Reviewed-on: https://go-review.googlesource.com/c/sys/+/274573 Trust: Tobias Klauser <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]>
Is there more to do here? Are we going to do anything further for the 1.17 release? |
We're three weeks into the release freeze now. It seems this is either mostly done, or if there's more to do, progress can be continued in a future Go release, so I'll move it to Backlog. @mdempsky Please feel free to update the issue as needed. |
@mdempsky seems we can close this issue now? |
ping |
There are a lot of //go:linkname directives in macOS packages that don't do anything. We should remove them.
To elaborate, a directive like
//go:linkname foo bar
sets the Go variable or function namedfoo
to usebar
as its linker symbol (instead ofmypkgpath.foo
, like it would normally use). But if there's no Go variable or function namedfoo
, it just silently doesn't do anything.In CL 273986 (2d6ff99), I removed the occurrences within the standard library, but there are more in the vendored x/sys package that need to be fixed. There might be more instances in other repos too.
To test for problems, you can checkout the
dev.regabi
branch; revert CL 274732 (42e46f4); and then build packages like golang.org/x/sys/unix w/ various GOOS/GOARCH combinations.The text was updated successfully, but these errors were encountered: