Re: Rusty's module talk at the Kernel Summit

jlnance
2002-07-01T16:55:02Z

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