Re: Rusty's module talk at the Kernel Summit

From: jlnance@intrex.net
Date: Mon Jul 01 2002 - 12:02:49 EST


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/



This archive was generated by hypermail 2b29 : Sun Jul 07 2002 - 22:00:07 EST