2022-09-14 16:50:44 -05:00
|
|
|
OUTPUT_FORMAT(binary)
|
|
|
|
ENTRY(entry)
|
|
|
|
|
|
|
|
SECTIONS {
|
2023-01-31 21:26:43 -06:00
|
|
|
. = 0x100000;
|
2023-02-17 01:41:30 -06:00
|
|
|
_USERMODE = 0x800000;
|
|
|
|
_USERMODE_END = 0x1000000;
|
2022-09-14 16:50:44 -05:00
|
|
|
|
2023-02-08 10:33:49 -06:00
|
|
|
.text : {
|
2023-01-31 21:26:43 -06:00
|
|
|
*(.text);
|
2022-09-14 16:50:44 -05:00
|
|
|
}
|
|
|
|
|
2023-02-08 10:33:49 -06:00
|
|
|
.data : {
|
2023-02-10 19:20:17 -06:00
|
|
|
*(.data*);
|
2023-02-12 00:42:14 -06:00
|
|
|
*(.data);
|
2023-01-31 21:26:43 -06:00
|
|
|
*(.rodata);
|
|
|
|
*(.rodata*);
|
|
|
|
_edata = .;
|
2022-09-14 16:50:44 -05:00
|
|
|
}
|
|
|
|
|
2023-02-02 14:52:26 -06:00
|
|
|
.realmode 0x4000 :
|
2023-02-10 19:20:17 -06:00
|
|
|
AT ( _edata )
|
2023-01-31 21:26:43 -06:00
|
|
|
{ _v86code = .; *(.v86); _ev86code = .; }
|
2023-02-10 19:20:17 -06:00
|
|
|
. = _edata + SIZEOF(.realmode);
|
2023-01-31 21:26:43 -06:00
|
|
|
|
|
|
|
.bss : ALIGN(0x1000)
|
|
|
|
{
|
2023-02-10 19:20:17 -06:00
|
|
|
_bstart = .; *(.bss); *(.bss*) _bend = .;
|
|
|
|
}
|
|
|
|
|
2023-02-12 00:42:14 -06:00
|
|
|
.bss _USERMODE (NOLOAD) : AT(_bend) {
|
|
|
|
_bhexstart = .;
|
|
|
|
*(.hexbss);
|
|
|
|
*(.hexbss*);
|
|
|
|
_bhexend = .;
|
|
|
|
*(.hexlatebss);
|
|
|
|
*(.hexlatebss*);
|
|
|
|
}
|
|
|
|
.bss _USERMODE (NOLOAD) : AT(_bend) {
|
|
|
|
_btextstart = .;
|
|
|
|
*(.textbss);
|
|
|
|
*(.textbss*);
|
|
|
|
_btextend = .;
|
|
|
|
*(.textlatebss);
|
|
|
|
*(.textlatebss*);
|
|
|
|
}
|
|
|
|
|
2023-02-10 19:20:17 -06:00
|
|
|
/DISCARD/ : {
|
|
|
|
*(.note*)
|
|
|
|
*(.comment*)
|
2022-09-14 16:50:44 -05:00
|
|
|
}
|
|
|
|
}
|