Follow-up Comment #3, bug #34820 (project grub):

Here is the output of mbchk on the kernel.bin file I uploaded:

iso_files/boot/kernel.bin: The Multiboot header is found at the offset 4100.
iso_files/boot/kernel.bin: Page alignment is turned on.
iso_files/boot/kernel.bin: Memory information is turned on.
iso_files/boot/kernel.bin: Address fields is turned off.
iso_files/boot/kernel.bin: All checks passed.

Here is also the linker configuration file I use (perhaps the header is not in
the right place, but then why does it work in grub legacy?)



OUTPUT_FORMAT(elf32-i386)

ENTRY(loader)

phys = 0x00100000;

virt = 0xC0001000;

SECTIONS

{

        .setup phys : AT (phys)

        {

                *(.setup)

                . = ALIGN(4096);

        }



        .text virt : AT ( ADDR(.setup) + SIZEOF (.setup) ) 

        {

                *(.text*)

                *(.rodata*)

                . = ALIGN(4096);

        }



        .data : AT ( ADDR(.setup) + SIZEOF (.setup) + SIZEOF(.text) )

        {

                *(.data)

                . = ALIGN(4096);

        }



        .bss : AT ( ADDR(.setup) + SIZEOF (.setup) + SIZEOF(.text) + 
SIZEOF(.data) )

        {

                bss = .;

                *(.bss)

                . = ALIGN(4096);

                *(COMMON)

                . = ALIGN(4096);

        }



        _end = .;

}


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34820>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to