[PATCH] D28203: Enable weak hooks on darwin

Saleem Abdulrasool via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 31 17:59:28 PST 2016


compnerd added a comment.

Its actually not that dangerous, given that ELF by default does this for any dynamic linking.  However, it is possible to be more granular and specify the symbols which are okay to be undefined using the `-U <name>`  option to the linker.  It is slightly nicer than the blanket approach, but at a higher maintainence cost (any time the sanitizers change the hooks, it would need to be updated.  But, that doesnt seem too bad.


https://reviews.llvm.org/D28203





More information about the llvm-commits mailing list