From f523c92a74bace287d1139fab77a030b9598ef61 Mon Sep 17 00:00:00 2001 From: Caitlyn Marko Date: Thu, 9 Feb 2017 09:16:17 -0500 Subject: [PATCH] SOLARIS: save kernel module function arguments for debugging Add the -Wu,-save_args compiler option when building kernel modules under Solaris 10 and 11 for the amd64 architecture. Binaries generated with this option save function arguments on the stack during function entry for debugging purposes. Up to six integer arguments are saved on function entry, and are not modified during the execution of the function. [mmeffie: commit message update] Reviewed-on: https://gerrit.openafs.org/12798 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk (cherry picked from commit 32d0493a7e4f74f5e5efdfde5eca29ed7d1bf3ec) Change-Id: I478ce65da78b86aa3c13e1c615bafd51d0f5d567 Reviewed-on: https://gerrit.openafs.org/12903 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- src/libafs/MakefileProto.SOLARIS.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libafs/MakefileProto.SOLARIS.in b/src/libafs/MakefileProto.SOLARIS.in index 9eecd9751..af30068f1 100644 --- a/src/libafs/MakefileProto.SOLARIS.in +++ b/src/libafs/MakefileProto.SOLARIS.in @@ -41,6 +41,8 @@ DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT #LORDER = /usr/ccs/bin/lorder #CC = /opt/SUNWspro/bin/cc KDEFS= -D_KERNEL -DSYSV -dn ${ARCH_DEFS} + +DBUG= -Wu,-save_args KDEFS_32 = -xarch=v8 -- 2.39.5