45 lines
444 B
Plaintext
45 lines
444 B
Plaintext
OUTPUT_FORMAT("binary")
|
|
/*ENTRY(start) */
|
|
phys = 0x7c00;
|
|
|
|
SECTIONS
|
|
{
|
|
. = 0x7c00;
|
|
|
|
.text :
|
|
{
|
|
code = .;
|
|
*(.text)
|
|
}
|
|
|
|
.rodata BLOCK(1) : ALIGN(1)
|
|
{
|
|
*(.rodata)
|
|
}
|
|
|
|
.data BLOCK(1) : ALIGN(1)
|
|
{
|
|
data = .;
|
|
*(.data)
|
|
}
|
|
|
|
.bss BLOCK(1) : ALIGN(1)
|
|
{
|
|
PROVIDE(_bss_start = .);
|
|
bss = .;
|
|
*(COMMON)
|
|
*(.bss)
|
|
*(.stack)
|
|
PROVIDE(_bss_end = .);
|
|
}
|
|
|
|
end = .;
|
|
|
|
/DISCARD/ :
|
|
{
|
|
*(.comment)
|
|
*(.eh_frame)
|
|
*(.note.gnu.build-id)
|
|
}
|
|
}
|