[PATCH] MC: Don't emit min version directives when -fno-integrated-as is on

Nico Weber thakis at chromium.org
Wed Jan 21 21:36:30 PST 2015


I'm trying to use afl-fuzz with asan on OS X. afl-fuzz tells you to set CXX to afl-clang++ and rebuild your program. afl-clang++ then calls clang++ with -no-integrated-as and -B to a path with its own as wrapper that inserts some instrumentation assembly before calling real as. This doesn't work on OS X because clang++ writes this .macosx_version_min directive that as doesn't support. If I apply this patch, everything does work. So this seems like a useful thing to me – are there any downsides to this patch?

Are there any other possible fixes for this use-case? Does llvm have an as-compatible assembler driver somewhere?


http://reviews.llvm.org/D6371

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list