Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1E5tJt-0007NJ-Ld for mharc-grub-devel@gnu.org; Thu, 18 Aug 2005 18:57:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E5tJS-0007HO-Uk for grub-devel@gnu.org; Thu, 18 Aug 2005 18:56:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E5tJP-0007FS-B9 for grub-devel@gnu.org; Thu, 18 Aug 2005 18:56:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5tJO-00079w-Rm for grub-devel@gnu.org; Thu, 18 Aug 2005 18:56:38 -0400 Received: from [66.163.179.102] (helo=web35308.mail.mud.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1E5tPD-0000Vr-O7 for grub-devel@gnu.org; Thu, 18 Aug 2005 19:02:40 -0400 Received: (qmail 26630 invoked by uid 60001); 18 Aug 2005 22:46:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MG/mzHF9IlMNcRuXXSJIKIAMTyatUCRxIefVu128WqVHr1JdWc6d36ejgPHQUNUUXtOWdgx8hbm/ZJlveh1+sERSiUB9eBhkSi/cB84YyD/IM2lQ8c5UDqKiiz5JM7/G2/9RLZ2DuarOUaoj/+L/0LSdD/gmlJr2BKhj71kaTmc= ; Message-ID: <20050818224604.26628.qmail@web35308.mail.mud.yahoo.com> Received: from [84.53.202.39] by web35308.mail.mud.yahoo.com via HTTP; Thu, 18 Aug 2005 15:46:04 PDT Date: Thu, 18 Aug 2005 15:46:04 -0700 (PDT) From: Ruslan Nikolaev To: The development of GRUB 2 In-Reply-To: <200508180143.04392.okuji@enbug.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1379970575-1124405164=:25519" Content-Transfer-Encoding: 8bit Subject: [QUESTION] Multiboot again X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2005 22:56:45 -0000 --0-1379970575-1124405164=:25519 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Yes, in general I agree with you. I think that prevents loading kernel will be better... but it's not a very principal question. I HAVE ANOTHER QUESTION: Kernel usual running in negative virtual address space. For example GRUB Legacy masks entry_point and all memory addresses of program segments with 0xFFFFFF when loading FreeBSD ELF. In contrast for multiboot ELF it loads directly. I have a question: how can I run kernel in negative address space and use multiboot ELF. May be it is a very stupid question... but I really needs to know about it :) "Yoshinori K. Okuji" wrote: On Thursday 18 August 2005 00:27, Ruslan Nikolaev wrote: > I have a one question. GRUB requires have a kernel as an executable file > (at least for ELF). This is not very good from user point. For example user > can try to load such kernel at operating system and get something like > "Segmentation fault". I don't understand what is wrong with this. It is normal to get an error when the user executes a binary file which is not supposed to run on an alien environment. > I think that having kernel as a non-executable file (for example ET_REL for > ELF) is better. However we need another "entry" point (special symbol). It > is possible to have something like "multiboot_start". ...And doesn't have > "_start" or "start" symbols in kernel at all. I don't agree. From the view of boot loaders, a kernel is truly an executable. So it is natural to use ET_EXEC. Applying ET_REL is very strange, because a kernel is not a relocatable object (who relocates the kernel?). Okuji _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel --------------------------------- Start your day with Yahoo! - make it your home page --0-1379970575-1124405164=:25519 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Yes, in general I agree with you. I think that prevents loading kernel will be better... but it's not a very principal question.
 
I HAVE ANOTHER QUESTION:
 
Kernel usual running in negative virtual address space. For example GRUB Legacy masks entry_point and all memory addresses of program segments with 0xFFFFFF when loading FreeBSD ELF. In contrast for multiboot ELF it loads directly.
 
I have a question: how can I run kernel in negative address space and use multiboot ELF. May be it is a very stupid question... but I really needs to know about it :)

"Yoshinori K. Okuji" <okuji@enbug.org> wrote:
On Thursday 18 August 2005 00:27, Ruslan Nikolaev wrote:
> I have a one question. GRUB requires have a kernel as an executable file
> (at least for ELF). This is not very good from user point. For example user
> can try to load such kernel at operating system and get something like
> "Segmentation fault".

I don't understand what is wrong with this. It is normal to get an error when
the user executes a binary file which is not supposed to run on an alien
environment.

> I think that having kernel as a non-executable file (for example ET_REL for
> ELF) is better. However we need another "entry" point (special symbol). It
> is possible to have something like "multiboot_start". ...And doesn't have
> "_start" or "start" symbols in kernel at all.

I don't agree. From the view of boot loaders, a kernel is truly an executable.
So it is natural to use ET_EXEC. Applying ET_REL is very strange, because a
kernel is not a relocatable object (who relocates the kernel?).

Okuji


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


Start your day with Yahoo! - make it your home page --0-1379970575-1124405164=:25519--