finix/kernel/arch/i686/linker.ld

38 lines
508 B
Text
Raw Normal View History

2023-07-16 06:54:32 +00:00
ENTRY(start)
SECTIONS {
2023-07-17 04:09:26 +00:00
. = 0x00100000;
2023-07-16 06:54:32 +00:00
kernel_start = .;
2023-07-17 04:09:26 +00:00
2023-07-17 23:34:52 +00:00
.bootstrap : {
*(.bootstrap.text)
2023-07-22 15:05:30 +00:00
*(.bootstrap.data)
*(.bootstrap.bss)
2023-07-17 23:34:52 +00:00
}
2023-07-17 04:09:26 +00:00
. += 0xC0000000;
2023-07-16 06:54:32 +00:00
2023-07-17 04:09:26 +00:00
.text ALIGN (4K) : AT (ADDR (.text) - 0xC0000000)
2023-07-16 06:54:32 +00:00
{
*(.text)
}
2023-07-17 04:09:26 +00:00
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC0000000)
2023-07-16 06:54:32 +00:00
{
*(.rodata)
}
2023-07-17 04:09:26 +00:00
.data ALIGN (4K) : AT (ADDR (.data) - 0xC0000000)
2023-07-16 06:54:32 +00:00
{
2023-07-17 04:09:26 +00:00
*(.data)
}
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC0000000)
{
*(COMMON)
2023-07-16 06:54:32 +00:00
*(.bss)
}
2023-07-17 04:09:26 +00:00
2023-07-16 06:54:32 +00:00
kernel_end = .;
}