[PATCH] D39114: [XRay] Initial XRay in Darwin Support
Kuba (Brecka) Mracek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 9 09:03:01 PST 2017
kubamracek added a comment.
> When linking the final binary, the XRay runtime can't seem to find the `__{start,stop}_xray_{fn_idx,instr_map}` symbols. I've marked them weak, but they seem to either not be resolved when statically linking the binary. The dynamic lib version of the XRay runtime isn't quite ready yet, but I'm willing to try some things there.
> There are also missing symbols from the sanitizer_common library that's linked to from the `libclang_rt.xray_osx.a` produced by the compiler-rt XRay build configuration.
> Any further hints/thoughts on this would be great, @kubamracek (cc @pelikan and @echristo)
This is one of the reasons why a dynamic shared library works better. Using a dynamic library should solve this. What are the problems with that?
https://reviews.llvm.org/D39114
More information about the cfe-commits
mailing list