Cucumber/Kernel/src/kernel.ld

52 lines
723 B
Plaintext
Raw Normal View History

2011-06-28 11:15:42 +00:00
OUTPUT_FORMAT(elf64-x86-64)
ENTRY(kmain)
2012-05-18 14:14:51 +00:00
KERNEL_VMA = 0xffffffff80000000;
2011-06-28 11:15:42 +00:00
SECTIONS
{
. = KERNEL_VMA;
_start = .;
2011-06-28 11:15:42 +00:00
.text : AT(ADDR(.text) - KERNEL_VMA)
{
_code = .;
*(.text)
*(.text.*)
2011-06-28 11:15:42 +00:00
*(.rodata*)
2012-10-01 13:03:10 +00:00
. = ALIGN(8);
_start_ctors = .;
*(.ctors)
_end_ctors = .;
2011-06-28 11:15:42 +00:00
. = ALIGN(4096);
}
.data : AT(ADDR(.data) - KERNEL_VMA)
{
_data = .;
*(.data)
. = ALIGN(4096);
}
.bss : AT(ADDR(.bss) - KERNEL_VMA)
{
_bss = .;
*(.bss)
*(COMMON)
. = ALIGN(4096);
}
_end = .;
/DISCARD/ :
{
*(.comment)
2012-07-20 22:40:26 +00:00
*(.debug*)
2012-10-01 13:03:10 +00:00
*(.eh_frame)
2011-06-28 11:15:42 +00:00
}
}