Page 2 of 2

Re: Multiboot Header - Has the magic number changed?

Posted: Fri Jan 29, 2010 4:35 pm
by XanClic
Love4Boobies wrote:It is not a mistake to have the multiboot header in the .text section, it is in fact the most common approach. You needn't be afraid that your header will end up in some random place because you basically end up with the assembly code generated from the C file appended to the multiboot header part. Having a separate section is inconsistent with many executable formats (e.g., a.out).
If you are using ELF, don't rely on all that. When I started using C as the language for my operating systems, I used NASM instead of FASM. But then I tried to switch back to FASM (together with C), that failed, because the linker put the FASM code behind the C code (I still don't know why the same thing didn't happen with NASM). Thus I had to create a new section and everything worked fine.
So I can't recommend putting the multiboot header into the text section.

Re: Multiboot Header - Has the magic number changed?

Posted: Sat Jan 30, 2010 1:17 am
by Love4Boobies
That's not normal. I'm guessing you did something wrong and didn't see it. But having a separate section is no problem, of course.

Re: Multiboot Header - Has the magic number changed?

Posted: Tue Feb 02, 2010 9:29 am
by jal
quok wrote:The new multiboot draft says the new magic number is 0x36d76289.
That's the magic value returned in EAX. The header magic value is supposedly 0xe85250d6.


JAL