bootsector_c/linker.ld

28 lines
449 B
Plaintext
Raw Normal View History

2024-10-19 17:09:19 +00:00
ENTRY (_start)
OUTPUT_FORMAT (binary)
2024-10-19 17:47:25 +00:00
OUTPUT_ARCH(i386)
2024-10-19 17:09:19 +00:00
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)
}
}