Generate new_delete linker command programmatically
commit24a9ef7b08b05970e3f9ac0073e52a205efdad5b
authorBert Maher <bertrand@fb.com>
Tue, 2 Dec 2014 18:24:37 +0000 (2 10:24 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Tue, 2 Dec 2014 18:30:30 +0000 (2 10:30 -0800)
tree2cbbd81ef7e20acb81d49ed3eceb57431869598a
parent2e579093ede772018e22e12228d4388f7d0cbb3a
Generate new_delete linker command programmatically

Summary: ASAN doesn't like redefining new/delete, probably because it wants
distinct symbols for the purpose of matching up new/delete vs malloc/free.  The
workaround here is to generate the new_delete linker file programmatically and
make it conditional on FOLLY_SANITIZE_ADDRESS.

Reviewed By: @markw65

Differential Revision: D1711991
hphp/hhvm/new_delete [deleted file]