Re: Kernels > 1M

Andrea Arcangeli (andrea@suse.de)
Mon, 23 Aug 1999 01:18:27 +0200 (CEST)


On Mon, 16 Aug 1999, Riley Williams wrote:

>work. I have to admit that the need to generate a kernel between 1.1M
>and 1.3M in size is proving difficult, but I expect this to be sorted

Add a large global variable to the .data segment (you need to initialize
it). If you want to tune the size of the kernel between 1.1 and 1.3m then
calc the size of your current image and add to it the delta.

main()
{
static int foo[1024*1204] = { 1, };
}

the above proggy for example would generate a 4mbyte ELF executable.

You can add such a variable where you want (just choose your preferred .c
source ;).

Andrea

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