-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/link: -race doesn't work by default on FreeBSD with cgo #73788
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
Comments
Change https://go.dev/cl/674160 mentions this issue: |
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
In internal linking mode with disable ASLR under -race, https://cs.opensource.google/go/go/+/master:src/cmd/link/internal/ld/elf.go;l=800 Thanks. |
These were just enabled by https://go.dev/cl/643897, but freebsd unfortunately doesn't seem to support cgo + race mode by default. For #73788. Cq-Include-Trybots: luci.golang.try:gotip-freebsd-amd64-race Change-Id: I6a6a636c06176ca746548d0588283b1429d7c6d5 Reviewed-on: https://go-revie 8841 w.googlesource.com/c/go/+/674160 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Auto-Submit: Michael Pratt <mpratt@google.com>
There is indeed no built-in support in ld.lld for configuring The bits in the note are documented in elf(5):
It would be fairly straightforward for us to propose a patch adding support to ld.lld but it hasn't been done yet. |
On our freebsd-amd64 builders (14.2-RELEASE-p2):
i.e., using cgo defaults to external linking, but it seems that external linking breaks -race mode.
cc @golang/freebsd
The text was updated successfully, but these errors were encountered: