2018-03-05 17:12:24 +03:00
|
|
|
OUTPUT_FORMAT("binary")
|
2018-03-15 04:33:09 +03:00
|
|
|
/*ENTRY(start) */
|
2018-03-05 17:12:24 +03:00
|
|
|
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)
|
|
|
|
{
|
2018-12-20 09:45:13 +03:00
|
|
|
PROVIDE(_bss_start = .);
|
2018-03-05 17:12:24 +03:00
|
|
|
bss = .;
|
|
|
|
*(COMMON)
|
|
|
|
*(.bss)
|
|
|
|
*(.stack)
|
2018-12-20 09:45:13 +03:00
|
|
|
PROVIDE(_bss_end = .);
|
2018-03-05 17:12:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
end = .;
|
|
|
|
|
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
*(.comment)
|
|
|
|
*(.eh_frame)
|
|
|
|
*(.note.gnu.build-id)
|
|
|
|
}
|
|
|
|
}
|