[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How is size of kernel found? What exactly do the memory numbers mean
From: |
Yoshinori K. Okuji |
Subject: |
Re: How is size of kernel found? What exactly do the memory numbers mean? |
Date: |
Fri, 25 Jan 2002 21:39:15 +0900 |
User-agent: |
Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryoae) APEL/10.3 Emacs/20.7 (i686-pc-linux-gnu) MULE/4.0 (HANANOEN) |
At Fri, 25 Jan 2002 06:15:19 -0600,
Phil Frost wrote:
> No, i'm using ld and gcc, all standard development tools. They are both
> straight from the debian packages. One thing to note is that I'm
> building a kernel, not a linux application, so I compile with -nostdinc
> which means that nothing, to my knowledge, gets defined automaticly.
> Even _start must be defined by me, as it is usually done by the default
> libraries.
You don't know how the symbols are defined. See the default linker
script under the directory "/usr/lib/ldscripts". _start is not defined
automatically, because it is normally defined in crtbegin.o. _end is
defined automatically, because it is defined in the linker script.
> I don't think it is, but if so, perhaps GRUB should contain better
> memory detection code. If you give your memory allocator numbers that
> "might" be right, you will surely get trouble. Having the code in GRUB
> would simplify things a lot, because for the OS to do it would require
> that a realmode portal is set up, which isn't as simple as making the
> calls in realmode at boot.
I don't see what you are talking about at all.
Okuji