limine/src/linker.ld

32 lines
620 B
Plaintext
Raw Normal View History

2019-05-15 07:08:56 +03:00
OUTPUT_FORMAT(binary)
ENTRY(main)
SECTIONS
{
2020-01-21 13:42:17 +03:00
. = 0x8000;
2019-05-15 07:08:56 +03:00
.text : {
bootsect_begin = .;
KEEP(*(.entry*))
2020-01-21 13:42:17 +03:00
*(.text*)
}
.rodata : {
*(.rodata*)
2019-05-15 07:08:56 +03:00
}
.data : {
2020-01-21 13:42:17 +03:00
*(.data*)
. += 31744 - (. - bootsect_begin); /* Limit how big the thing can get
31744 = 32768 - (512 * 2)
32KiB of MBR gap minus 2 sectors
for stages 1 and 2 */
}
.bss : {
bss_begin = .;
*(.bss*)
bss_end = .;
2019-05-15 07:08:56 +03:00
}
}