problem with Higher_Half_x86_Bare_Bones
Posted: Sat Aug 27, 2016 11:45 am
Hi.
Is it only me, or there is something wrong with the Barebones code.
The multiboot header is not placed in start of the text section, which causes grub to barf.
Is it OK to have 2 program headers ? I think that this might be the problem, but I'm not sure.
Here's the readelf output:
Additionaly, there's a warning from nasm regarding the assembly code:
Is it only me, or there is something wrong with the Barebones code.
The multiboot header is not placed in start of the text section, which causes grub to barf.
Is it OK to have 2 program headers ? I think that this might be the problem, but I'm not sure.
Here's the readelf output:
Code: Select all
$ readelf -l kernel.bin
Elf file type is EXEC (Executable file)
Entry point 0x10186c
There are 2 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x001000 0xc0100000 0x00100000 0x0250c 0x0250c R E 0x1000
LOAD 0x004000 0xc0103000 0x00103000 0x02000 0x06e20 RW 0x1000
Section to Segment mapping:
Segment Sections...
00 .text .eh_frame
01 .data .bss
boot/loader.s:48: warning: symbol `loader': GLOBAL directive after symbol definition is an experimental feature