[PATCH] D39508: [ubsan] lit changes for lld testing, future lto testing.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 13:47:17 PDT 2017


lebedev.ri created this revision.
Herald added subscribers: inglorion, mehdi_amini, mgorny, kubamracek.

As discussed in https://github.com/google/oss-fuzz/issues/933,
it would be really awesome to be able to use ThinLTO for fuzzing.
However, as @kcc has pointed out, it is currently undefined (untested)
whether the sanitizers actually function properly with LLD and/or LTO.

This patch is inspired by the cfi test, which already do test with LTO
(and/or LLD), since LTO is required for CFI to function.

I started with UBSan, because it's cmakelists / lit.* files appeared
to be the cleanest. This patch adds the infrastructure to easily add
LLD and/or LTO sub-variants of the existing lit test configurations.

Also, this patch adds the LLD flavor, that explicitly does use LLD to link.
The check-ubsan does pass on my machine. And to minimize the [initial]
potential buildbot breakage i have put some restrictions on this flavour.

Please review carefully, i have not worked with lit/sanitizer tests before.


Repository:
  rL LLVM

https://reviews.llvm.org/D39508

Files:
  test/ubsan/CMakeLists.txt
  test/ubsan/lit.common.cfg
  test/ubsan/lit.site.cfg.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39508.121179.patch
Type: text/x-patch
Size: 6225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171101/a7dd9fee/attachment.bin>


More information about the llvm-commits mailing list