[compiler-rt] r355064 - [sanitizer] Got rid of text relocations in i386 vfork interceptor.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 27 17:54:55 PST 2019


Author: eugenis
Date: Wed Feb 27 17:54:55 2019
New Revision: 355064

URL: http://llvm.org/viewvc/llvm-project?rev=355064&view=rev
Log:
[sanitizer] Got rid of text relocations in i386 vfork interceptor.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors_vfork_i386.inc.S

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors_vfork_i386.inc.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors_vfork_i386.inc.S?rev=355064&r1=355063&r2=355064&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors_vfork_i386.inc.S (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors_vfork_i386.inc.S Wed Feb 27 17:54:55 2019
@@ -13,8 +13,12 @@ ASM_WRAPPER_NAME(vfork):
         mov     %ecx, (%eax)
         add     $16, %esp
 
-
-        call    *_ZN14__interception10real_vforkE
+        call    .L0$pb
+.L0$pb:
+        pop     %eax
+.Ltmp0:
+        add     $_GLOBAL_OFFSET_TABLE_+(.Ltmp0-.L0$pb), %eax
+        call    *_ZN14__interception10real_vforkE at GOTOFF(%eax)
 
         // Restore return address from the spill area.
         sub     $16, %esp




More information about the llvm-commits mailing list