Remove reference to register_exit_code

I'm trying to compile a kernel module for Solaris 9 which contains C++ code. I'm compiling with the Sun Studio 11 compiler. One file declares some global variables that are C++ class types. It appears that within the constructors for some of these classes the compiler generates a reference to the symbol run::register_exit_code. I know this is defined in the Crun library but I do not want to link with that library since this is a kernel module. I'm using the -library=%none switch and I've tried using the -staticlib=Crun, but the symbol continues to show up as undefined.

Fred

[597 byte] By [FredStock] at [2007-11-26 11:54:55]
# 1
Do not use static or global variables that require construction or destruction in kernel code. The problem is that such code depends on parts of the C/C++ runtime system that are not available in the kernel.
clamage45 at 2007-7-7 12:13:09 > top of Java-index,Development Tools,Solaris and Linux Development Tools...