[PATCH] D100251: [IR][sanitizer] Set nounwind on module ctor/dtor, additionally set uwtable if -fasynchronous-unwind-tables
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 12 13:27:53 PDT 2021
MaskRay added a comment.
In D100251#2684074 <https://reviews.llvm.org/D100251#2684074>, @nickdesaulniers wrote:
>> -fno-exceptions -fno-asynchronous-unwind-tables -g produces .debug_frame
>> while
>> -fno-exceptions -fno-asynchronous-unwind-tables -g -fsanitize=address produces .eh_frame.
>
> Does this patch change that behavior?
Yes. I consider `-fno-exceptions -fno-asynchronous-unwind-tables -g -fsanitize=address` producing `.eh_frame` is a bug. This patch will fix it.
`-fsanitize=address` can be replaced with many other instrumentations (-fsanitize=memory, -fprofile-arcs, -fsanitize-coverage=trace-pc-guard, ...)
This patch fixes the various sanitizers.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100251/new/
https://reviews.llvm.org/D100251
More information about the llvm-commits
mailing list