grub: Error 13 when i added 255 function!
Posted: Sat Jul 16, 2011 9:37 am
Hi,
I've my kernel who boot on grub. I trying to add 255 function to my kernel but grub raised "Error 13: Invalid or unsupported executable format".
If i add 10 function => my kernel boot
If i add 11 function => "Error 13: Invalid or unsupported executable format"
I don't understand the probleme.
Here is the output of "objdump -x yalc" (10 function:http://pastebin.com/rgkiHTiM and 255 function:http://pastebin.com/gXJcnXmp).
My linker:
My boot.S:
I became crazy!
Thx
I've my kernel who boot on grub. I trying to add 255 function to my kernel but grub raised "Error 13: Invalid or unsupported executable format".
If i add 10 function => my kernel boot
If i add 11 function => "Error 13: Invalid or unsupported executable format"
I don't understand the probleme.
Here is the output of "objdump -x yalc" (10 function:http://pastebin.com/rgkiHTiM and 255 function:http://pastebin.com/gXJcnXmp).
My linker:
Code: Select all
OUTPUT_FORMAT("elf32-i386")
ENTRY(_start)
SECTIONS
{
. = 0x00100000;
.multiboot : AT ( ADDR( .multiboot ) ) { *(.multiboot) }
.text : AT(ADDR(.text)) { *(.text) }
}
Code: Select all
#define ASM
#include "multiboot.h"
.section .multiboot
.align 4
mboot:
.long MULTIBOOT_HEADER_MAGIC
.long MULTIBOOT_HEADER_FLAGS
.long -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)
.section .text
.global _start
_start:
pushl %eax
movl %ebx, %edx
call init_kernel
Thx