[PATCH] D25120: [compiler-rt] Fix interception of crt atoll on win10 CRT.

Etienne Bergeron via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 12:43:14 PDT 2016


etienneb created this revision.
etienneb added a reviewer: rnk.
etienneb added subscribers: llvm-commits, chrisha.
Herald added a subscriber: dberris.

The check-asan-dynamic tests were broken on win10 because the interception
library was not able to hook on some functions.

credits: thanks sebastian marchand to help debugging this on win10.


https://reviews.llvm.org/D25120

Files:
  lib/interception/interception_win.cc


Index: lib/interception/interception_win.cc
===================================================================
--- lib/interception/interception_win.cc
+++ lib/interception/interception_win.cc
@@ -498,6 +498,7 @@
     case 0xd9f748:    // 48 f7 d9 : neg rcx
     case 0xd12b48:    // 48 2b d1 : sub rdx, rcx
     case 0x07c1f6:    // f6 c1 07 : test cl, 0x7
+    case 0xc98548:    // 48 85 C9 : test rcx, rcx
     case 0xc0854d:    // 4d 85 c0 : test r8, r8
     case 0xc2b60f:    // 0f b6 c2 : movzx eax, dl
     case 0xc03345:    // 45 33 c0 : xor r8d, r8d


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25120.73119.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160930/23378d03/attachment.bin>


More information about the llvm-commits mailing list