]> git.hungrycats.org Git - linux/commitdiff
[PATCH] The kernel cannot cope with modules without unwind data, which happens
authorAndreas Schwab <schwab@suse.de>
Mon, 8 Apr 2002 06:25:06 +0000 (23:25 -0700)
committerDavid Mosberger <davidm@wailua.hpl.hp.com>
Mon, 8 Apr 2002 06:25:06 +0000 (23:25 -0700)
with data-only modules like the fs/nls modules when compiling with gcc
3.1.  This patch fixes the problem.

include/asm-ia64/module.h

index 931469ebe4a857ba8501d856238e2b65afd8a89d..0c64400aceb7ba6795aec24264d67e9f1616fa45 100644 (file)
@@ -51,6 +51,9 @@ ia64_module_init (struct module *mod)
                return 0;
        archdata = (struct archdata *)(mod->archdata_start);
 
+       if (archdata->unw_start == 0)
+               return 0;
+
        /*
         * Make sure the unwind pointers are sane.
         */