Currently, when building the Go race detector (when SANITIZER_GO is set), SANITIZER_WEAK_IMPORT is no-op. It is perfectly fine to define SANITIZER_WEAK_IMPORT for Go just like other cases. That will tell the Go linker to treat _dyld_get_dyld_header as a weak import. Perhaps SANITIZER_WEAK_ATTRIBUTE can also be defined for Go. That would be a separate patch.
Compiler-RT ================================ This directory and its subdirectories contain source code for the compiler support routines. Compiler-RT is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt. ================================