[PATCH] Always add -lc++abi when using vptr sanitizer on Darwin.
    Alexey Samsonov 
    vonosmas at gmail.com
       
    Tue Jan 13 22:56:50 PST 2015
    
    
  
In http://reviews.llvm.org/D6960#108386, @kledzik wrote:
> It will just work.  libstdc++.dylib re-exports symbols from libc++abi.dylib:
>
> [/tmp]> dyldinfo -export /usr/lib/libstdc++.dylib | grep __class_type_info 
>  [re-export] __ZTVN10__cxxabiv117__class_type_infoE (from libc++abi)
>  [re-export] __ZTSN10__cxxabiv117__class_type_infoE (from libc++abi)
>  [re-export] __ZTVN10__cxxabiv117__class_type_infoE (from libc++abi)
>  [re-export] __ZTSN10__cxxabiv117__class_type_infoE (from libc++abi)
>  [/tmp]>
Well, users in that bug tell that they saw errors about unresolved symbols:
  Undefined symbols for architecture x86_64:
    "__ZTIN10__cxxabiv117__class_type_infoE", referenced from:
        __ZN7__ubsan16checkDynamicTypeEPvS0_m in
but they went away after adding -lc++abi. Sorry, I don't have the Mac box at hand to verify it...
http://reviews.llvm.org/D6960
EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
    
    
More information about the cfe-commits
mailing list