[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MULTIBOOT: size & start of loaded kernel?
From: |
Yoshinori K. Okuji |
Subject: |
Re: MULTIBOOT: size & start of loaded kernel? |
Date: |
Tue, 6 Apr 2004 09:44:35 +0200 |
User-agent: |
KMail/1.5.3 |
On Tuesday 06 April 2004 06:57, Joshua Oreman wrote:
> 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.
Where is "anywhere the loader sees fit" in the spec? Multiboot-compliant
boot loaders must load a kernel at the location the kernel specifies in
its Multiboot header.
> 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.
_start is the easiest.
Okuji