This is a binary of modules-2.1.8 (including the patch below) for Linux/m68k. You need it if you want to use modules with kernel version 2.1.8 or higher. -------------------------------------------------------------------------------- Article: 40036 of comp.os.linux.development.system Path: idefix.CS.kuleuven.ac.be!chaos.kulnet.kuleuven.ac.be!news.vub.ac.be!news.belnet.be!swsbe6.switch.ch!swidir.switch.ch!in2p3.fr!univ-lyon1.fr!howland.erols.net!www.nntp.primenet.com!nntp.primenet.com!news-feed.inet.tele.dk!cph-1.news.DK.net!dkuug!dknet!ic.dk!osiris.ping.dk!news From: storner@osiris.ping.dk (Henrik Storner) Newsgroups: comp.os.linux.development.system Subject: Re: Modules 2.1.8 / Kernel 2.1.8 - insmod cores Date: 18 Nov 1996 07:37:48 +0100 Organization: Linux users, Inc. Lines: 69 Message-ID: <56p07s$9q2@osiris.ping.dk> References: <56oojl$nor@qualcomm.com> NNTP-Posting-Host: osiris.ping.dk X-Newsreader: NN version 6.5.1 (NOV) In <56oojl$nor@qualcomm.com> cwingert@qualcomm.com (Christopher Wingert) writes: >I am upgrading to 2.1.8 and am trying to load the modules for IP >masquerading when I modprobe the files I get >ip_masq_irc (uninitialized) >ip_masq_raudio (uninitialized) >ip_masq_ftp (uninitialized) >and insmod is leaving a core file. >modules-2.1.8.tgz Try the following patch for modules-2.1.8 - it appeared on the linux-kernel mailing list shortly after the modules-package was released. --- snip --- Date: Sun, 10 Nov 1996 21:00:20 +0300 Message-ID: <199611101800.VAA01119@jane.ecsc.mipt.ru> From: "Yuri A. Pudgorodsky" To: linux-kernel@vger.rutgers.edu Cc: jack@solucorp.qc.ca, torvalds@cs.helsinki.fi Subject: Bug fix for modules-2.1.8 Hello! It seems to me, that the greatest and latest module utils has a little typo. Without the following patch, insmod try to allocate and zero bsssection even if the module has zero size bss or has no bss section at all. Results: insmod gets segmentation fault and a module been leaved in the uninitialized state. With the patch, almost seems to work fine for me :-) Knock the wood?... --- modules-2.1.8/insmod/load_elf.c~ Mon Nov 4 07:56:58 1996 +++ modules-2.1.8/insmod/load_elf.c Sun Nov 10 20:47:21 1996 @@ -366,7 +366,8 @@ } /* JEJB: zero the bss (now it's actually allocated) */ - memset(secref[bss_seg], 0, bss_size); + if (bss_size) + memset(secref[bss_seg], 0, bss_size); for (spnt = sections, i = 0; i < epnt->e_shnum; ++i, ++spnt) { #ifdef __i386__ @@ -622,7 +623,9 @@ } loaded = (char *)(((int)loaded + 3) & ~3); - bss_size = loaded - secref[bss_seg]; + /* yur: don't change bss_size if no bss in the module */ + if (secref[bss_seg]) + bss_size = loaded - secref[bss_seg]; progsize = codesize = loaded - textseg; aout_flag = 0; /* i.e.: if it's not a.out, it _has_ to be ELF... */ if (defsym(strncmp, "_GLOBAL_OFFSET_TABLE_", loaded - textseg, N_BSS | N_EXT, TRANSIENT)) -- Henrik Storner (storner@osiris.ping.dk) -------------------------------------------------------------------------------- -- Geert Uytterhoeven Geert.Uytterhoeven@cs.kuleuven.ac.be Wavelets, Linux/m68k on Amiga http://www.cs.kuleuven.ac.be/~geert/ Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium