hwasan: Add a code model check for tagged globals.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Aug 2019 21:40:00 +0000 (21:40 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Aug 2019 21:40:00 +0000 (21:40 +0000)
commit3a9059effb1c6ec79c6edde44d10690c43c3f52e
tree1aae10b36780b0901de672ca81523fdd70eeb8a1
parent8416f20f2f5581cf1710f8c6f96f100683777fc6
hwasan: Add a code model check for tagged globals.

See D65364 for the code model requirements for tagged globals. Because
of the relocations used these requirements cannot be checked at link
time so they must be checked at runtime.

Differential Revision: https://reviews.llvm.org/D65968

llvm-svn: 368351
compiler-rt/lib/hwasan/hwasan.cpp