[PATCH] AArch64 sanitizer support

Christophe Lyon christophe.lyon at linaro.org
Mon Feb 10 04:21:31 PST 2014


Hi,

The attached patch enables sanitizer (asan, ubsan) on AArch64.

As I work on GCC, I have written the patch and tested it within GCC,
where I had to merge libsanitizer from rev 198044 (this patch is based
onto this revision).

I have an additional patch to enable libsanitizer on AArch64 in GCC,
which I will send to GCC once the AArch64 support has been accepted in
libsanitizer itself.

Testing has proven to be a bit tricky:
- the Foundation Model simulator is slow (causing some timeouts), and
shows reliability problems with GCC's dejagnu testsuite
- qemu-aarch64 is not yet fully supported and goes into infinite loop
when executing the null-deref-1.c test, which otherwise works under
the Foundation Model.
- I managed to have someone execute the GCC testsuite on actual
AArch64 hardware, showing that the tests pass
- some of ubsan tests cause GCC to ICE, but I think this will have to
be addressed separately in GCC

Finally, as I will be away from office for a few weeks, I might not be
able to address all comments, but Renato or Yvan in CC will be able to
answer questions.

Thanks,

Christophe.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsanitizer-aarch64.patch
Type: text/x-patch
Size: 12333 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140210/4d9222d5/attachment.bin>


More information about the llvm-commits mailing list