[PATCH] D51277: [XRay][compiler-rt] Stash flags as well in x86_64 trampoline

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 28 03:33:55 PDT 2018


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT340812: [XRay][compiler-rt] Stash flags as well in x86_64 trampoline (authored by dberris, committed by ).
Herald added a subscriber: Sanitizers.

Changed prior to commit:
  https://reviews.llvm.org/D51277?vs=162608&id=162819#toc

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D51277

Files:
  lib/xray/xray_trampoline_x86_64.S


Index: lib/xray/xray_trampoline_x86_64.S
===================================================================
--- lib/xray/xray_trampoline_x86_64.S
+++ lib/xray/xray_trampoline_x86_64.S
@@ -19,6 +19,7 @@
 
 
 .macro SAVE_REGISTERS
+	pushfq
 	subq $240, %rsp
 	CFI_DEF_CFA_OFFSET(248)
 	movq %rbp, 232(%rsp)
@@ -69,6 +70,7 @@
 	movq  8(%rsp), %r14
 	movq  0(%rsp), %r15
 	addq	$240, %rsp
+	popfq
 	CFI_DEF_CFA_OFFSET(8)
 .endm
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51277.162819.patch
Type: text/x-patch
Size: 427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180828/a38a24db/attachment.bin>


More information about the llvm-commits mailing list