2021-03-03 23:40:55 +03:00
|
|
|
OUTPUT_FORMAT(elf32-i386)
|
|
|
|
ENTRY(_start)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0x8000;
|
|
|
|
|
|
|
|
.entry : {
|
|
|
|
*(.entry*)
|
|
|
|
}
|
|
|
|
|
|
|
|
.realmode : {
|
|
|
|
*(.realmode*)
|
|
|
|
}
|
|
|
|
|
|
|
|
.stage2.text : {
|
|
|
|
*.s2.o(.text*)
|
|
|
|
}
|
|
|
|
|
2021-11-08 11:42:41 +03:00
|
|
|
.stage2.build-id : {
|
|
|
|
build_id_s2 = .;
|
|
|
|
*build-id.s2.o(*)
|
|
|
|
}
|
|
|
|
|
2021-03-03 23:40:55 +03:00
|
|
|
.stage2.data : {
|
|
|
|
*.s2.o(.data*)
|
|
|
|
*.s2.o(.rodata*)
|
2021-03-12 07:19:56 +03:00
|
|
|
*(.stage2_map)
|
2021-03-03 23:40:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.stage3.text : {
|
|
|
|
stage3_addr = .;
|
|
|
|
*(.stage3_entry*)
|
|
|
|
*(.text*)
|
|
|
|
}
|
|
|
|
|
2021-11-08 11:42:41 +03:00
|
|
|
.stage3.build-id : {
|
|
|
|
build_id_s3 = .;
|
|
|
|
*build-id.s3.o(*)
|
|
|
|
}
|
|
|
|
|
2021-03-03 23:40:55 +03:00
|
|
|
.stage3.data : {
|
|
|
|
*(.data*)
|
|
|
|
*(.rodata*)
|
2021-03-12 07:19:56 +03:00
|
|
|
*(.full_map*)
|
|
|
|
limine_sys_size = . - 0x8000;
|
2021-03-03 23:40:55 +03:00
|
|
|
}
|
|
|
|
|
2021-11-08 11:42:41 +03:00
|
|
|
.note.gnu.build-id : {
|
|
|
|
*(.note.gnu.build-id)
|
|
|
|
}
|
|
|
|
|
2021-03-03 23:40:55 +03:00
|
|
|
.bss : {
|
|
|
|
bss_begin = .;
|
|
|
|
*(COMMON)
|
|
|
|
*(.bss*)
|
|
|
|
bss_end = .;
|
|
|
|
}
|
2021-03-15 09:32:23 +03:00
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.symtab 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.symtab)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.strtab 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.strtab)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.shstrtab 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.shstrtab)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_aranges 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_aranges)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_pubnames 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_pubnames)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_info 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_info)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_abbrev 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_abbrev)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_line 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_line)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_loclists 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_loclists)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_rnglists 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_rnglists)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_frame 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_frame)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_loc 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_loc)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_ranges 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_ranges)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_str 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_str)
|
|
|
|
}
|
|
|
|
|
2021-05-31 02:52:43 +03:00
|
|
|
.debug_line_str 0 : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(.debug_line_str)
|
|
|
|
}
|
|
|
|
|
2021-03-15 09:32:23 +03:00
|
|
|
/DISCARD/ : {
|
2021-05-31 01:32:43 +03:00
|
|
|
*(*)
|
2021-03-15 09:32:23 +03:00
|
|
|
}
|
2021-03-03 23:40:55 +03:00
|
|
|
}
|