bussy/stage1/stage1.ld

44 lines
545 B
Text
Raw Normal View History

2023-05-28 19:28:21 +02:00
OUTPUT_FORMAT(elf32-i386)
ENTRY(_start)
2023-05-30 21:39:46 +02:00
SEGMENT_SIZE = 0x10000;
2023-05-28 19:28:21 +02:00
SECTIONS {
. = 0x0500;
_stage1_start = .;
.header : {
KEEP(*(.header))
}
.text : ALIGN(8) {
*(.text .text.*)
}
.data : ALIGN(8) {
*(.data .data.*)
}
.rodata : ALIGN(8) {
*(.rodata .rodata.*)
}
_stage1_end = .;
.bss(NOLOAD) : ALIGN(8) {
_bss_start = .;
*(.bss .bss.*)
_bss_end = .;
}
2023-05-30 21:39:46 +02:00
.iomem(NOLOAD) : ALIGN(SEGMENT_SIZE) {
_disk_buf = .;
. += SEGMENT_SIZE;
_disk_buf_end = .;
_mem_map = .;
. += SEGMENT_SIZE;
_mem_map_end = .;
}
2023-05-28 19:28:21 +02:00
}