This is an archive of the discontinued LLVM Phabricator instance.

[XRay][compiler-rt][Darwin] Use dynamic initialisation as an alternative
ClosedPublic

Authored by dberris on Nov 29 2017, 4:24 AM.

Details

Summary

In cases where we can't use the .preinit_array section (as in Darwin for
example) we instead use dynamic initialisation. We know that this
alternative approach will race with the initializers of other objects at
global scope, but this is strictly better than nothing.

Diff Detail

Event Timeline

dberris created this revision.Nov 29 2017, 4:24 AM
kubamracek accepted this revision.Nov 29 2017, 7:38 AM
This revision is now accepted and ready to land.Nov 29 2017, 7:38 AM
This revision was automatically updated to reflect the committed changes.