This is an archive of the discontinued LLVM Phabricator instance.

[ASanStableABI][Driver] Stop linking to asan dylib when stable abi is enabled
ClosedPublic

Authored by thetruestblue on Jul 31 2023, 10:09 AM.

Details

Summary

This patch enables linking of the static archive when fsanitize-stable-abi is set and stops linking to the asan dylib.

To link to the Address Sanitizer stable abi static library use "-fsanitize=address -fsanitize-stable-abi"

Updates a test with these flags.

rdar://112480890

Diff Detail

Event Timeline

thetruestblue created this revision.Jul 31 2023, 10:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2023, 10:09 AM
Herald added a subscriber: Enna1. · View Herald Transcript
thetruestblue requested review of this revision.Jul 31 2023, 10:09 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 31 2023, 10:09 AM
Herald added subscribers: Restricted Project, cfe-commits. · View Herald Transcript
rsundahl accepted this revision.Aug 1 2023, 2:13 PM

This looks good to me. Thanks for the additional clean-up @thetruestblue.

This revision is now accepted and ready to land.Aug 1 2023, 2:13 PM
wrotki accepted this revision.Aug 1 2023, 6:41 PM

Yes, it looks good. I downloaded the patch and ran the test - had some doubts about 'otool -L %t |grep -q "dynamic.dylib"' - but verified with other ASAN tests binaries and convinced myself that it's the right thing to do.