This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Fix 'dyld: Symbol not found: _dyldVersionNumber' link error on old Darwin systems.
ClosedPublic

Authored by m.ostapenko on Apr 18 2016, 12:52 AM.

Details

Summary

This patch fixes https://github.com/google/sanitizers/issues/669. On older Darwin systems (in particular, Darwin 10), dyld doesn't export _dyldVersionNumber symbol so we would have 'undefined reference' error in sanitzer library. Although sanitizers support was added to LLVM on OS X 10.7+ where _dyldVersionNumber symbol is already exported, GCC users still may want use them on older systems.

Diff Detail

Repository
rL LLVM

Event Timeline

m.ostapenko retitled this revision from to [sanitizer] Fix 'dyld: Symbol not found: _dyldVersionNumber' link error on old Darwin systems..
m.ostapenko updated this object.
m.ostapenko set the repository for this revision to rL LLVM.
m.ostapenko added subscribers: llvm-commits, ygribov.
kubamracek accepted this revision.Apr 20 2016, 3:13 AM
kubamracek edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Apr 20 2016, 3:13 AM
This revision was automatically updated to reflect the committed changes.