| Issue |
64692
|
| Summary |
build the executable file with --fsanitize=memtag failed
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
zintown
|
I used clang to compile programs with memtag sanitizer on Arm v8.9-a fvp with MTE hardware mechanism enabled.
Compiling and linking the target file failed, but the two steps of compiling and linking can generate the target file
`clang++-17 --target=aarch64-linux -march=armv8.5-a+memtag -fsanitize=memtag-stack,memtag-heap 2.cpp -O0` failed with this output:
`clang++-17: error: unsupported option '-fsanitize=memtag*' for target 'aarch64-unknown-linux'`
But if I try to make middle object file instead of final executable file by the command `clang++-17 --target=aarch64-linux -march=armv8.5-a+memtag -fsanitize=memtag-stack,memtag-heap -c 2.cpp -O0`, and link it with `clang++-17 -o 2 2.o -fuse-ld=lld`.
the build process is successful.
Is there a problem with target checking in Clang, or I misused the memtag sanitizer option?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs