[compiler-rt] Fix incorrect handling of indirect load.
authorEtienne Bergeron <etienneb@google.com>
Mon, 18 Jul 2016 19:50:55 +0000 (19:50 +0000)
committerEtienne Bergeron <etienneb@google.com>
Mon, 18 Jul 2016 19:50:55 +0000 (19:50 +0000)
commita81a44ffd461464e0bc89c611a766eba019bff9b
treea1e204b88f7d43ed4c26e1e93768f1118cf2852e
parentea5b72825b52b3063ecaab135c9594d087f16a08
[compiler-rt] Fix incorrect handling of indirect load.

Summary:
Indirect load are relative offset from RIP.

The current trampoline implementation is incorrectly
copying these instructions which make some unittests
crashing.

This patch is not fixing the unittests but it's fixing
the crashes. The functions are no longer hooked.

Patches will come soon to fix these unittests.

Reviewers: rnk

Subscribers: llvm-commits, wang0109, chrisha

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

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