mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
650383f283
Properly annotate functions and data section so that objtool does not complain when CONFIG_STACK_VALIDATION and CONFIG_FRAME_POINTER are enabled. Pass KERNELCPPFLAGS to assembler. Use kfpu_begin()/kfpu_end() to protect SIMD regions in Linux kernel. Reviewed-by: Tom Caputi <tcaputi@datto.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Gvozden Neskovic <neskovic@gmail.com> Closes #5872 Closes #5041
20 lines
417 B
Plaintext
20 lines
417 B
Plaintext
dnl #
|
|
dnl # 4.6 API for compile-time stack validation
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_OBJTOOL], [
|
|
AC_MSG_CHECKING([for compile-time stack validation (objtool)])
|
|
ZFS_LINUX_TRY_COMPILE([
|
|
#undef __ASSEMBLY__
|
|
#include <asm/frame.h>
|
|
],[
|
|
#if !defined(FRAME_BEGIN)
|
|
CTASSERT(1);
|
|
#endif
|
|
],[
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_KERNEL_OBJTOOL, 1, [kernel does stack verification])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|