[PATCH] D56672: [HWASAN] Instrument globals

Eugene Leviant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 06:29:38 PDT 2019


evgeny777 added a comment.

> I think it should be possible if you make the relocation point to the object itself (which will have local linkage) and not the alias that you're creating.

It doesn't seem to work. Dynamic loader doesn't know anything about aliases - alias and aliasee can point to different memory locations if aliasee is preempted. 
Also let's say I have external declaration of variable `foo`. How do I know if `foo` is instrumented in another TU or not. If not then I think, I can't tag it's address


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56672/new/

https://reviews.llvm.org/D56672





More information about the llvm-commits mailing list