This is an archive of the discontinued LLVM Phabricator instance.

[ASan/Win] Add an extra thunk.lib to handle stack-use-after-return option
ClosedPublic

Authored by timurrrr on Aug 25 2014, 9:58 AM.

Details

Reviewers
samsonov
Summary

"check-asan" passes all the tests with both MT and MD with this patch applied and COMPILER_RT_BUILD_SHARED_ASAN set to ON
(PR20214)

Diff Detail

Event Timeline

timurrrr updated this revision to Diff 12905.Aug 25 2014, 9:58 AM
timurrrr retitled this revision from to [ASan/Win] Add an extra thunk.lib to handle stack-use-after-return option.
timurrrr updated this object.
timurrrr edited the test plan for this revision. (Show Details)
timurrrr added a reviewer: samsonov.
timurrrr added subscribers: Unknown Object (MLST), Unknown Object (MLST).
samsonov accepted this revision.Aug 25 2014, 11:11 AM
samsonov edited edge metadata.

OK, let's do this.

compiler-rt/trunk/lib/asan/asan_uar_thunk.cc
1

Consider clarifying that this is Windows-specific file in the filename.

30

wrong comment

This revision is now accepted and ready to land.Aug 25 2014, 11:11 AM
timurrrr closed this revision.Aug 26 2014, 3:18 AM

r216447!

compiler-rt/trunk/lib/asan/asan_uar_thunk.cc
1

Good idea!
I've made it asan_win_uar_thunk.cc, I'll also rename asan_dll_thunk.cc to asan_win_dll_thunk.cc in a separate change for consistency.

Please note that I've intentionally left the .lib filename unchanged as it doesn't make sense to put win in there.

30

Good catch -- thanks!