summaryrefslogtreecommitdiff
path: root/ext/ffi_c/libffi/src/x86/freebsd.S
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi_c/libffi/src/x86/freebsd.S')
-rw-r--r--ext/ffi_c/libffi/src/x86/freebsd.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/ffi_c/libffi/src/x86/freebsd.S b/ext/ffi_c/libffi/src/x86/freebsd.S
index afde513..97e0b4e 100644
--- a/ext/ffi_c/libffi/src/x86/freebsd.S
+++ b/ext/ffi_c/libffi/src/x86/freebsd.S
@@ -49,6 +49,9 @@ ffi_call_SYSV:
movl 16(%ebp),%ecx
subl %ecx,%esp
+ /* Align the stack pointer to 16-bytes */
+ andl $0xfffffff0, %esp
+
movl %esp,%eax
/* Place all of the ffi_prep_args in position */
@@ -456,3 +459,5 @@ ffi_closure_raw_SYSV:
#endif
#endif /* ifndef __x86_64__ */
+
+ .section .note.GNU-stack,"",%progbits