[compiler-rt] Add support for relative offset adjustment in interception
authorEtienne Bergeron <etienneb@google.com>
Thu, 21 Jul 2016 21:08:54 +0000 (21:08 +0000)
committerEtienne Bergeron <etienneb@google.com>
Thu, 21 Jul 2016 21:08:54 +0000 (21:08 +0000)
commit901b0dc96a0ad48dcfd3da2af2e21393e247dbb9
treef797ef69c8bda10800af6da593b16d03fe741c43
parent07915f6cb050500195021d05b70817db08ecdd59
[compiler-rt] Add support for relative offset adjustment in interception

Summary:
Some instructions can only be copied if the relative offset is adjusted.

This patch adds support for two common instruction.
It's quite common to have a indirect load in the prologue
(loading the security cookie).

Reviewers: rnk

Subscribers: llvm-commits, wang0109, chrisha

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

llvm-svn: 276336
compiler-rt/lib/interception/interception_win.cc