Code: Select all
[Multiboot-elf, <0x100000:0x80:0x4008>(bad), entry=0x10000c]
Code: Select all
$ objdump -h kernel.bin
kernel.bin: file format elf32-i386
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000046 00100000 00100000 00001000 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .eh_frame 00000038 00100048 00100048 00001048 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .bss 00004008 00100080 00100080 00001080 2**2
ALLOC
3 .comment 0000002a 00000000 00000000 00001080 2**0
CONTENTS, READONLY
Code: Select all
ENTRY (loader)
SECTIONS {
. = 0x00100000;
.text ALIGN (0x1000): {
*(.text)
}
.rodata ALIGN (0x1000) :
{
*(.rodata*)
}
.data ALIGN (0x1000) :
{
*(.data)
}
.bss :
{
sbss = .;
*(COMMON)
*(.bss)
ebss = .;
}
}