limine/stage23/linker.ld

56 lines
775 B
Plaintext
Raw Normal View History

OUTPUT_FORMAT(elf32-i386)
ENTRY(_start)
2019-05-15 07:08:56 +03:00
SECTIONS
{
. = 0x8000;
2019-05-15 07:08:56 +03:00
2021-02-21 01:04:06 +03:00
.entry : {
*(.entry*)
2021-02-21 01:04:06 +03:00
}
.realmode : {
*(.realmode*)
2020-01-21 13:42:17 +03:00
}
2021-02-25 03:24:54 +03:00
.stage2.text : {
*.s2.o(.text*)
*libgcc.a:*(.text*)
2021-02-25 03:24:54 +03:00
}
.stage2.data : {
*.s2.o(.data*)
*.s2.o(.rodata*)
*libgcc.a:*(.data*)
*libgcc.a:*(.rodata*)
2019-05-15 07:08:56 +03:00
}
2021-02-25 03:24:54 +03:00
.stage3.text : {
2021-02-21 01:04:06 +03:00
stage3_addr = .;
*(.stage3_entry*)
*(.stage3_build_id*)
*(.text*)
2021-02-25 03:24:54 +03:00
}
.stage3.data : {
*(.data*)
*(.rodata*)
2020-01-21 13:42:17 +03:00
}
2021-02-25 03:24:54 +03:00
.map : {
*(.map*)
limine_sys_size = . - 0x8000;
2021-02-25 03:24:54 +03:00
}
2020-01-21 13:42:17 +03:00
.bss : {
bss_begin = .;
2020-01-22 02:56:20 +03:00
*(COMMON)
2020-01-21 13:42:17 +03:00
*(.bss*)
bss_end = .;
2019-05-15 07:08:56 +03:00
}
/DISCARD/ : {
*(*)
}
2019-05-15 07:08:56 +03:00
}