[sanitizer] Got rid of text relocations in i386 vfork interceptor.

llvm-svn: 355064
This commit is contained in:
Evgeniy Stepanov 2019-02-28 01:54:55 +00:00
parent 321f80e23f
commit d4b4e17d2c
1 changed files with 6 additions and 2 deletions

View File

@ -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@GOTOFF(%eax)
// Restore return address from the spill area.
sub $16, %esp