This is an archive of the discontinued LLVM Phabricator instance.

[asan] Let the frontend disable gc-sections optimization for asan globals.
ClosedPublic

Authored by eugenis on Apr 13 2017, 4:46 PM.

Details

Reviewers
rgov
pcc
Summary

Also extend -asan-globals-live-support flag to all binary formats.

Clang driver can use it based on things like -fno-data-sections and
-fno-integrated-as, which can make this optimization not beneficial
or even impossible.

Diff Detail

Repository
rL LLVM

Event Timeline

eugenis created this revision.Apr 13 2017, 4:46 PM
eugenis updated this revision to Diff 95255.Apr 13 2017, 6:22 PM
eugenis retitled this revision from [asan] Let the frontend disable gc-sections optimization for asan globals to [asan] Extend -asan-globals-live-support flag to all binary formats.
eugenis edited the summary of this revision. (Show Details)
eugenis updated this revision to Diff 96228.Apr 21 2017, 2:05 PM
eugenis retitled this revision from [asan] Extend -asan-globals-live-support flag to all binary formats to [asan] Let the frontend disable gc-sections optimization for asan globals..
eugenis edited the summary of this revision. (Show Details)
pcc accepted this revision.Apr 21 2017, 4:37 PM

LGTM

This revision is now accepted and ready to land.Apr 21 2017, 4:37 PM
eugenis closed this revision.May 1 2017, 2:47 PM

r301226