This is an archive of the discontinued LLVM Phabricator instance.

[asan] Turn on Mach-O global metadata liveness tracking by default
ClosedPublic

Authored by zaks.anna on Nov 16 2016, 3:54 PM.

Details

Summary

This patch turns on the metadata liveness tracking since all known issues have been resolved. The future has been implemented in https://reviews.llvm.org/D16737 and enables support of dead code stripping option on Mach-O platforms.

As part of enabling the feature, I also plan on reverting the following patch to compiler-rt:
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160704/369910.html

Diff Detail

Repository
rL LLVM

Event Timeline

zaks.anna updated this revision to Diff 78278.Nov 16 2016, 3:54 PM
zaks.anna retitled this revision from to [asan] Turn on Mach-O global metadata liveness tracking by default.
zaks.anna updated this object.
zaks.anna added reviewers: kubamracek, rgov.
zaks.anna added a subscriber: llvm-commits.
kcc accepted this revision.Nov 17 2016, 8:57 AM
kcc added a reviewer: kcc.

LGTM

This revision is now accepted and ready to land.Nov 17 2016, 8:57 AM
rnk added a comment.Nov 17 2016, 9:01 AM

See also https://reviews.llvm.org/D26770 / https://reviews.llvm.org/D26771, which do this for COFF. Doing it for ELF will require more investigation, and probably changes to LLVM comdats and the ELF writer.

This revision was automatically updated to reflect the committed changes.