Index: compiler-rt/trunk/test/msan/lit.cfg =================================================================== --- compiler-rt/trunk/test/msan/lit.cfg +++ compiler-rt/trunk/test/msan/lit.cfg @@ -17,7 +17,7 @@ config.debug_info_flags) # Some Msan tests leverage backtrace() which requires libexecinfo on FreeBSD. if config.host_os == 'FreeBSD': - clang_msan_cflags += ["-lexecinfo"] + clang_msan_cflags += ["-lexecinfo", "-fPIC"] clang_msan_cxxflags = config.cxx_mode_flags + clang_msan_cflags # Flags for KMSAN invocation. This is C-only, we're not interested in C++.