This is an archive of the discontinued LLVM Phabricator instance.

[RISC-V] Add test case for -fsanitize=shadow-call-stack
AbandonedPublic

Authored by hiraditya on Mar 13 2023, 12:34 PM.

Details

Diff Detail

Event Timeline

hiraditya created this revision.Mar 13 2023, 12:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 12:34 PM
hiraditya requested review of this revision.Mar 13 2023, 12:34 PM

Is this related to coverage? If not, should the test go to sanitizer-ld.c instead?

hiraditya updated this revision to Diff 504881.Mar 13 2023, 4:13 PM

Moved the testcase as suggested by @samitolvanen

samitolvanen added inline comments.Mar 13 2023, 4:48 PM
clang/test/Driver/sanitizer-ld.c
746

-ffixed-x18 isn't needed after D145999. Can you drop the flag and land that patch first?

747

Perhaps CHECK-SHADOWCALLSTACK-ANDROID-RISCV64 to match the naming convention in the file?

748

Should we also check for -NOT: error: like the Fuchsia test below?

hiraditya abandoned this revision.Mar 14 2023, 9:58 PM

I'll fold this to D145999.