Re: [PATCH] parisc: fix module loading failure of large kernel modules (take 2)

From: Rusty Russell
Date: Tue Dec 30 2008 - 23:09:00 EST


On Wednesday 31 December 2008 09:32:41 Helge Deller wrote:
> BTW, although the comment states that arches can change section sizes
> in the module_frob_arch_sections() function:
> /* Allow arches to frob section contents and sizes. */
> it will break horrible if you do so.
> What I found was, that if you change sh_size, at least the module
> references / dependency chain will break when running lsmod.

Well, you can change the size of NOBITS sections: other things are likely
to be less successful. You could probably make them smaller, though.

Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/