Re: Rusty's module talk at the Kernel Summit

jlnance@intrex.net
Mon, 1 Jul 2002 13:02:49 -0400


On Mon, Jul 01, 2002 at 09:12:56AM -0700, Adam J. Richter wrote:
> As an extereme illustration, imagine a module with 4095 bytes
> of non-init data and 2 bytes of init data. With the .init section loaded,
> the module will occupy two pages. Freeing the .init section will free
> an entire page, making 4096 bytes available to the system, even though
> only two bytes were in the .init section.

Surly we can do better and just not generate .init sections for modules
where the size would be smaller than a page. Is binutils capable of doing
this given the proper linker script?

Thanks,

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