]> Cypherpunks repositories - gostls13.git/commit
runtime/race: update darwin race syso
authorCherry Mui <cherryyz@google.com>
Tue, 25 Mar 2025 19:21:04 +0000 (15:21 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 6 Aug 2025 21:34:39 +0000 (14:34 -0700)
commit8282b72d627269ed2c2f7db7ea744e109667d7b1
tree79e51eb5b96bdd8ee5b3680b50c7301a8eb2cc66
parentdc54d7b607488e71776ba0fa3d09398d65daf033
runtime/race: update darwin race syso

On macOS, the script in LLVM TSAN building the race syso files
produces the Mach-O object with a malformed dynamic symbol table,
which new Apple linker doesn't like and emits an annoying warning
(https://github.com/golang/go/issues/61229#issuecomment-1988965927).
The dynamic symbol table isn't really needed, as it is a static
object. Perhaps it should be fixed in TSAN or the C toolchain, but
we can do a simple workaround: pass it through "ld -r", which
produces an equivalent object file with LC_DYSYMTAB removed.
CL 692975 changes racebuild to do this, which produces new syso's
in this CL.

While here, build the syso with a newer version of LLVM TSAN.

Updates #61229.

Change-Id: Ide4b7831eb2cb6877c8ace7b3ec8ff565a9eaf54
Reviewed-on: https://go-review.googlesource.com/c/go/+/692996
Reviewed-by: David Chase <drchase@google.com>
TryBot-Bypass: Cherry Mui <cherryyz@google.com>
src/runtime/race/README
src/runtime/race/internal/amd64v1/race_darwin.syso
src/runtime/race/race_darwin_amd64.go
src/runtime/race/race_darwin_arm64.go
src/runtime/race/race_darwin_arm64.syso