Index: compiler-rt/lib/profile/InstrProfilingPlatformLinux.c =================================================================== --- compiler-rt/lib/profile/InstrProfilingPlatformLinux.c +++ compiler-rt/lib/profile/InstrProfilingPlatformLinux.c @@ -263,7 +263,7 @@ // Ideally, we create a ".ref" of each variable inside the function // __llvm_profile_begin_counters(), but there's no source level construct // that allows us to generate that. -__attribute__((destructor)) void keep() { +COMPILER_RT_VISIBILITY __attribute__((destructor)) void keep() { int volatile use = &dummy_cnts < &dummy_data && &dummy_name < &dummy_vnds; (void)use; }