bootsector_c/linker.ld

27 lines
431 B
Plaintext
Raw Normal View History

2024-10-19 17:09:19 +00:00
ENTRY (_start)
OUTPUT_FORMAT (binary)
SECTIONS
{
. = 0x7c00;
2024-10-19 17:22:00 +00:00
.text : {
2024-10-19 17:09:19 +00:00
*(.text)
}
.rodata : { *(.rodata)
}
.data : { *(.data)
}
. = 0x7DFE;
.bootsig : {
SHORT(0xaa55);
}
.bss : { *(.bss)
}
. = ALIGN (0x200);
lit = .;
/DISCARD/ : { *(.eh_frame)
*(.comment)
*(.note.GNU-stack)
}
}