limine/common/linker_bios.ld.in

155 lines
2.3 KiB
Plaintext
Raw Normal View History

OUTPUT_FORMAT(elf32-i386)
2021-12-19 03:08:34 +03:00
OUTPUT_ARCH(i386)
ENTRY(_start)
SECTIONS
{
. = 0x8000;
.entry : {
2021-12-19 03:08:34 +03:00
*(.entry)
}
.realmode : {
2021-12-19 03:08:34 +03:00
*(.realmode)
}
.stage2.text : {
2021-12-19 03:08:34 +03:00
*.s2.o(.text .text.*)
}
.stage2.build-id : {
build_id_s2 = .;
*build-id.s2.o(*)
}
.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.*)
#ifdef LINKER_STAGE2ONLY
/* stage2 missing symbols overrides */
stage2_map = .;
stage3_common = .;
build_id_s3 = .;
full_map = .;
getchar_internal = .;
getchar = .;
menu = .;
term_write = .;
term_textmode = .;
2022-03-14 14:03:12 +03:00
term_vbe = .;
term_fallback = .;
stage3_addr = .;
data_begin = .;
#else
*(.stage2_map)
#endif
}
#ifndef LINKER_STAGE2ONLY
.stage3.text : {
stage3_addr = .;
2021-12-19 03:08:34 +03:00
*(.text .text.*)
}
.stage3.build-id : {
build_id_s3 = .;
*build-id.s3.o(*)
}
.stage3.data : {
2021-12-19 03:08:34 +03:00
*(.rodata .rodata.*)
#ifdef LINKER_NOMAP
full_map = .;
#else
2021-12-19 03:08:34 +03:00
*(.full_map)
#endif
2021-12-19 03:08:34 +03:00
*(.no_unwind)
2021-12-12 20:40:27 +03:00
data_begin = .;
2021-12-19 03:08:34 +03:00
*(.data .data.*)
}
#endif
.note.gnu.build-id : {
*(.note.gnu.build-id)
limine_sys_size = . - 0x8000;
}
.bss : {
bss_begin = .;
*(COMMON)
2021-12-19 03:08:34 +03:00
*(.bss .bss.*)
bss_end = .;
2021-12-12 20:40:27 +03:00
data_end = .;
}
.symtab 0 : {
*(.symtab)
}
.strtab 0 : {
*(.strtab)
}
.shstrtab 0 : {
*(.shstrtab)
}
#ifdef LINKER_DBG
.debug_aranges 0 : {
*(.debug_aranges)
}
.debug_pubnames 0 : {
*(.debug_pubnames)
}
.debug_info 0 : {
*(.debug_info)
}
.debug_abbrev 0 : {
*(.debug_abbrev)
}
.debug_line 0 : {
*(.debug_line)
}
.debug_loclists 0 : {
*(.debug_loclists)
}
.debug_rnglists 0 : {
*(.debug_rnglists)
}
.debug_frame 0 : {
*(.debug_frame)
}
.debug_loc 0 : {
*(.debug_loc)
}
.debug_ranges 0 : {
*(.debug_ranges)
}
.debug_str 0 : {
*(.debug_str)
}
.debug_line_str 0 : {
*(.debug_line_str)
}
#endif
/DISCARD/ : {
*(*)
}
}