2017-10-21 17:13:40 +01:00
|
|
|
/* http://wiki.osdev.org/Bare_Bones#Linking_the_Kernel */
|
|
|
|
ENTRY(_start)
|
2018-05-01 19:24:29 +01:00
|
|
|
OUTPUT_FORMAT(elf32-i386)
|
2017-10-20 22:04:42 +01:00
|
|
|
|
2017-10-21 17:13:40 +01:00
|
|
|
SECTIONS
|
|
|
|
{
|
2018-05-11 02:07:40 +01:00
|
|
|
. = 0x00100000;
|
2017-10-20 22:04:42 +01:00
|
|
|
|
2017-10-21 17:13:40 +01:00
|
|
|
.text BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(.multiboot)
|
|
|
|
*(.text)
|
|
|
|
}
|
2017-10-20 22:04:42 +01:00
|
|
|
|
2017-10-21 17:13:40 +01:00
|
|
|
.rodata BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(.rodata)
|
|
|
|
}
|
2017-10-20 22:04:42 +01:00
|
|
|
|
2017-10-21 17:13:40 +01:00
|
|
|
.data BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(.data)
|
|
|
|
}
|
|
|
|
|
|
|
|
.bss BLOCK(4K) : ALIGN(4K)
|
|
|
|
{
|
|
|
|
*(COMMON)
|
|
|
|
*(.bss)
|
|
|
|
}
|
2017-10-20 22:04:42 +01:00
|
|
|
|
|
|
|
}
|