Sancov output for sanitizer coverage

Greetings,

according to https://clang.llvm.org/docs/SanitizerCoverage.html#default-implementation clang provides default implementations for the trace callback functions to create sancov files. Can you tell me where in the code these functions are defined and if there is a backport for gcc?

Regards