Fixes for insmod

Bjorn Ekwall (bj0rn@blox.se)
Sun, 18 Feb 1996 13:30:05 +0100 (MET)


Hi all!

While testing the upcoming binutils-2.6.0.7(+) some strange things
in modules-1.3.57 were discovered (or provoced)...

Please try the two patches available on <http://www.pi.se/blox/modules/>
The second patch is actually quite small, so I'm posting it here as well:

--- modules-1.3.57/insmod/insmod.c Thu Feb 15 17:39:59 1996
+++ insmod.c Sun Feb 18 12:30:50 1996
@@ -627,6 +627,8 @@
len = (sp->u.e.st_size)?(sp->u.e.st_size):4;
}
symvalue(sp) = bss_offset;
+ len = (len + 3) & ~3;
+ progsize += len;
bss_offset += len;
} else if (is_undef(sp)) {
if (versioned_module) {

I think it is a side-effect of "the Big BSS Cleanup" after modules-1.1.87,
so the patches might be applicable to "modules-1.2.8" as well...

When I'm satisfied that the patches are correct, I will make yet another
release of the module support utilities.

Watch my web-pages! (The docs are also slowly creeping out on the web...)

Cheers,

Bjorn <bj0rn@blox.se> <http://www.pi.se/blox/>