2 dnl # 4.6 API for compile-time stack validation
4 AC_DEFUN([ZFS_AC_KERNEL_OBJTOOL], [
5 AC_MSG_CHECKING([for compile-time stack validation (objtool)])
6 ZFS_LINUX_TRY_COMPILE([
10 #if !defined(FRAME_BEGIN)
15 AC_DEFINE(HAVE_KERNEL_OBJTOOL, 1,
16 [kernel does stack verification])
18 ZFS_AC_KERNEL_STACK_FRAME_NON_STANDARD
25 dnl # 4.6 API added STACK_FRAME_NON_STANDARD macro
27 AC_DEFUN([ZFS_AC_KERNEL_STACK_FRAME_NON_STANDARD], [
28 AC_MSG_CHECKING([whether STACK_FRAME_NON_STANDARD is defined])
29 ZFS_LINUX_TRY_COMPILE([
30 #include <linux/frame.h>
32 #if !defined(STACK_FRAME_NON_STANDARD)
37 AC_DEFINE(HAVE_STACK_FRAME_NON_STANDARD, 1,
38 [STACK_FRAME_NON_STANDARD is defined])