LGTM This does not solve the issue of shared libraries (ex. in test/asan/TestCases/shared-lib-test.cc %t-so.so won't be copied to the device). I guess that's not an issue for qemu? http://reviews.llvm.org/D3553