[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MULTIBOOT: size & start of loaded kernel?
From: |
Joshua Oreman |
Subject: |
MULTIBOOT: size & start of loaded kernel? |
Date: |
Mon, 5 Apr 2004 21:57:27 -0700 |
User-agent: |
Mutt/1.4.1i |
Hi bug-grub,
Is there any way, when in a Multiboot kernel, to determine the load address
and length of the loaded kernel code? The Multiboot spec says the former is
"anywhere the loader sees fit", and the latter is obviously kernel-specific.
I have a feeling this may be possible via the ELF symbol table (using _start)
but I don't know the ELF format well enough to get from the section header
(which is provided) to the symbol table. Is there an easier way? I'm looking
to make sure that memory is not allocated from the middle of the kernel.
-- Josh
P.S. I know Grub tends to load at 1 MB, but this is obviously not guaranteed
by the spec.
- MULTIBOOT: size & start of loaded kernel?,
Joshua Oreman <=