2020-09-04 06:21:58 +03:00
|
|
|
OUTPUT_FORMAT(elf32-i386)
|
2021-12-19 03:08:34 +03:00
|
|
|
OUTPUT_ARCH(i386)
|
2020-09-18 23:15:27 +03:00
|
|
|
ENTRY(_start)
|
2019-05-15 07:08:56 +03:00
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2020-09-25 23:36:26 +03:00
|
|
|
. = 0x8000;
|
2019-05-15 07:08:56 +03:00
|
|
|
|
2021-02-21 01:04:06 +03:00
|
|
|
.entry : {
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.entry)
|
2021-02-21 01:04:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.realmode : {
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.realmode)
|
2020-01-21 13:42:17 +03:00
|
|
|
}
|
|
|
|
|
2021-02-25 03:24:54 +03:00
|
|
|
.stage2.text : {
|
2021-12-19 03:08:34 +03:00
|
|
|
*.s2.o(.text .text.*)
|
2021-02-25 03:24:54 +03:00
|
|
|
}
|
|
|
|
|
2021-11-08 11:42:41 +03:00
|
|
|
.stage2.build-id : {
|
|
|
|
build_id_s2 = .;
|
|
|
|
*build-id.s2.o(*)
|
|
|
|
}
|
|
|
|
|
2021-02-25 03:24:54 +03:00
|
|
|
.stage2.data : {
|
2021-12-19 03:08:34 +03:00
|
|
|
*.s2.o(.no_unwind)
|
|
|
|
s2_data_begin = .;
|
|
|
|
*.s2.o(.data .data.*)
|
|
|
|
s2_data_end = .;
|
|
|
|
*.s2.o(.rodata .rodata.*)
|
2021-03-12 07:19:56 +03:00
|
|
|
*(.stage2_map)
|
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 = .;
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.text .text.*)
|
2021-02-25 03:24:54 +03:00
|
|
|
}
|
|
|
|
|
2021-11-08 11:42:41 +03:00
|
|
|
.stage3.build-id : {
|
|
|
|
build_id_s3 = .;
|
|
|
|
*build-id.s3.o(*)
|
|
|
|
}
|
|
|
|
|
2021-02-25 03:24:54 +03:00
|
|
|
.stage3.data : {
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.rodata .rodata.*)
|
|
|
|
*(.full_map)
|
|
|
|
*(.no_unwind)
|
2021-12-12 20:40:27 +03:00
|
|
|
data_begin = .;
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.data .data.*)
|
2021-02-25 03:24:54 +03:00
|
|
|
}
|
|
|
|
|
2021-11-08 11:42:41 +03:00
|
|
|
.note.gnu.build-id : {
|
|
|
|
*(.note.gnu.build-id)
|
2021-12-22 02:10:43 +03:00
|
|
|
limine_sys_size = . - 0x8000;
|
2021-11-08 11:42:41 +03:00
|
|
|
}
|
|
|
|
|
2020-01-21 13:42:17 +03:00
|
|
|
.bss : {
|
|
|
|
bss_begin = .;
|
2020-01-22 02:56:20 +03:00
|
|
|
*(COMMON)
|
2021-12-19 03:08:34 +03:00
|
|
|
*(.bss .bss.*)
|
2020-01-21 13:42:17 +03:00
|
|
|
bss_end = .;
|
2021-12-12 20:40:27 +03:00
|
|
|
data_end = .;
|
2019-05-15 07:08:56 +03:00
|
|
|
}
|
2020-09-25 23:36:26 +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)
|
|
|
|
}
|
|
|
|
|
2020-09-25 23:36:26 +03:00
|
|
|
/DISCARD/ : {
|
|
|
|
*(*)
|
|
|
|
}
|
2019-05-15 07:08:56 +03:00
|
|
|
}
|