ROSE/link.ld

54 lines
960 B
Plaintext
Raw Normal View History

2022-09-14 16:50:44 -05:00
OUTPUT_FORMAT(binary)
ENTRY(entry)
SECTIONS {
2024-07-31 20:02:36 -05:00
IVT = 0x00000;
. = 0x100000;
_USERMODE = 0x800000;
_USERMODE_END = 0x1000000;
2022-09-14 16:50:44 -05:00
2023-02-08 10:33:49 -06:00
.text : {
*(.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*);
*(.data);
*(.rodata);
*(.rodata*);
_edata = .;
2022-09-14 16:50:44 -05:00
}
.realmode 0x4000 :
2023-02-10 19:20:17 -06:00
AT ( _edata )
{ _v86code = .; *(.v86); _ev86code = .; }
2023-02-10 19:20:17 -06:00
. = _edata + SIZEOF(.realmode);
.bss : ALIGN(0x1000)
{
2023-02-10 19:20:17 -06:00
_bstart = .; *(.bss); *(.bss*) _bend = .;
}
.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
}
}