In clang/lib/Driver/Tools.cpp addSanitizerDynamicList(), clang uses the --dynamic-list option, and my so check-asan in my self-hosted llvm/clang/lld test fails. FAILED: cd /tank/emaste/src/llvm/build-nodebug/projects/compiler-rt/lib/asan/tests && /tank/emaste/src/llvm/build-nodebug/./bin/clang ASAN_INST_TEST_OBJECTS.gtest-all.cc.x86_64-inline.o ASAN_INST_TEST_OBJECTS.asan_asm_test.cc.x86_64-inline.o ASAN_INST_TEST_OBJECTS.asan_globals_test.cc.x86_64-inline.o ASAN_INST_TEST_OBJECTS.asan_interface_test.cc.x86_64-inline.o ASAN_INST_TEST_OBJECTS.asan_test.cc.x86_64-inline.o ASAN_INST_TEST_OBJECTS.asan_oob_test.cc.x86_64-inline.o ASAN_INST_TEST_OBJECTS.asan_mem_test.cc.x86_64-inline.o ASAN_INST_TEST_OBJECTS.asan_str_test.cc.x86_64-inline.o ASAN_INST_TEST_OBJECTS.asan_test_main.cc.x86_64-inline.o -o /tank/emaste/src/llvm/build-nodebug/projects/compiler-rt/lib/asan/tests/default/Asan-x86_64-inline-Test -Wl,-z,origin -Wl,-allow-shlib-undefined --driver-mode=g++ -fsanitize=address -m64 warning: unknown argument: --dynamic-list=/tank/emaste/src/llvm/build-nodebug/bin/../lib/clang/3.9.0/lib/freebsd/libclang_rt.asan-x86_64.a.syms From the ld man page --dynamic-list is documented as: --dynamic-list=dynamic-list-file Specify the name of a dynamic list file to the linker. This is typically used when creating shared libraries to specify a list of global symbols whose references shouldn't be bound to the definition within the shared library, or creating dynamically linked executables to specify a list of symbols which should be added to the symbol table in the executable. This option is only meaningful on ELF platforms which support shared libraries.
r266227
(In reply to comment #1) > r266227 So, can this be closed ?
Ed, can you test it again?
(In reply to comment #3) > Ed, can you test it again? Yes, 'ninja check-asan' builds and all expected tests pass.
Cool. Let's call it done. If the existing feature is not enough, please open a new bug.
(In reply to comment #5) > Cool. Let's call it done. If the existing feature is not enough, please open > a new bug. Agreed -- I closed this PR earlier today.