At Tue, 22 Jan 2002 15:51:43 +0100,
Ingmar Friedrichsen wrote:
> I have a small stupid ask. How can I find out which memory is use by GRUB? 
> (and the kernel and the modules) The size and location of the modules is 
> in the module_t struct, but were is the size of the kernel?

Normally, you can use the symbol `end' or `_end' which is defined by a
linker implicitly as the end address of a kernel. So `end - start'
gives the size. Read the ELF specification (if you kernel is in ELF
format), for more information.

Okuji

_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to