[Linux-ia64] Modules without unwind data

From: Andreas Schwab <schwab_at_suse.de>
Date: 2002-04-07 02:15:42
The kernel cannot cope with modules without unwind data, which happens
with data-only modules like the fs/nls modules when compiling with gcc
3.1.

--- linux/include/asm-ia64/module.h.~1~	2002-03-19 21:51:32.000000000 +0100
+++ linux/include/asm-ia64/module.h	2002-04-06 18:08:41.000000000 +0200
@@ -51,6 +51,9 @@
 		return 0;
 	archdata = (struct archdata *)(mod->archdata_start);
 
+	if (archdata->unw_start == 0)
+		return 0;
+
 	/*
 	 * Make sure the unwind pointers are sane.
 	 */

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Received on Sat Apr 06 08:15:51 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:08 EST