[PATCH] D118948: [MTE] Add -fsanitize=memtag* and friends.
Mitch Phillips via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 4 12:55:10 PDT 2022
hctim marked an inline comment as done.
hctim added a comment.
In D118948#3427344 <https://reviews.llvm.org/D118948#3427344>, @tschuett wrote:
> Is `-fsanitize=memtag-heap` Android specific or target independent? It passes Android flags to the linker?!?
The frontend flag should be target-independent. The clang driver knows to only pass Android flags to the linker where `TC.getTriple().isAndroid()` is true. This should allow a glibc-based implementation to live under the same `-fsanitize=memtag-heap` flag, just chainging the implementation based on the target.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118948/new/
https://reviews.llvm.org/D118948
More information about the llvm-commits
mailing list