corn/arch/amd64/linker.ld

40 lines
362 B
Text
Raw Permalink Normal View History

2024-02-01 02:19:22 +00:00
ENTRY(start)
SECTIONS {
2024-02-01 19:43:11 +00:00
. = 1M;
2024-02-01 02:19:22 +00:00
2024-02-01 19:43:11 +00:00
kernel_start = .;
2024-02-01 02:19:22 +00:00
2024-02-01 19:43:11 +00:00
.boot BLOCK(4K) : ALIGN(4K)
{
*(.multiboot)
}
2024-02-01 02:19:22 +00:00
2024-02-01 19:43:11 +00:00
.rodata BLOCK(4K) : ALIGN(4K)
{
*(.rodata)
}
2024-02-01 02:19:22 +00:00
2024-02-01 19:43:11 +00:00
.data BLOCK(4K) : ALIGN(4K)
{
*(.data)
}
2024-02-01 02:19:22 +00:00
2024-02-01 19:43:11 +00:00
text_start = .;
2024-02-01 02:19:22 +00:00
2024-02-01 19:43:11 +00:00
.text BLOCK(4K) : ALIGN(4K)
{
*(.text)
}
2024-02-01 02:19:22 +00:00
2024-02-01 19:43:11 +00:00
text_end = .;
2024-02-01 02:19:22 +00:00
2024-02-01 19:43:11 +00:00
.bss BLOCK(4K) : ALIGN(4K)
{
*(COMMON)
2024-02-01 19:43:11 +00:00
*(.bss)
}
kernel_end = .;
2024-02-01 02:19:22 +00:00
}