Add NO_EXEC_STACK_DIRECTIVE to xray assembly files.

Summary: Add NO_EXEC_STACK_DIRECTIVE to xray assembly files

Reviewers: dberris, javed.absar

Reviewed By: dberris

Subscribers: llvm-commits

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

llvm-svn: 297894
This commit is contained in:
Dean Michael Berris 2017-03-15 21:18:47 +00:00
parent 9ad1b235d5
commit 5d892ab02e
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#include "../builtins/assembly.h"
.text
/* The variable containing the handler function pointer */
.global _ZN6__xray19XRayPatchedFunctionE
@ -138,3 +140,5 @@ FunctionTailExit_restore:
LDP X3, X4, [SP], #16
LDP X1, X2, [SP], #16
RET
NO_EXEC_STACK_DIRECTIVE

View File

@ -1,3 +1,5 @@
#include "../builtins/assembly.h"
.syntax unified
.arch armv6t2
.fpu vfpv2
@ -96,3 +98,5 @@ FunctionTailExit_restore:
@ Restore floating-point parameters of the instrumented function
VPOP {d0-d7}
POP {r1-r3,pc}
NO_EXEC_STACK_DIRECTIVE

View File

@ -13,6 +13,8 @@
//
//===----------------------------------------------------------------------===//
#include "../builtins/assembly.h"
.macro SAVE_REGISTERS
subq $200, %rsp
movupd %xmm0, 184(%rsp)
@ -188,3 +190,5 @@ __xray_ArgLoggerEntry:
.Larg1entryEnd:
.size __xray_ArgLoggerEntry, .Larg1entryEnd-__xray_ArgLoggerEntry
.cfi_endproc
NO_EXEC_STACK_DIRECTIVE