2010-05-19 15:24:15 +02:00
|
|
|
OUTPUT_ARCH("i386")
|
|
|
|
ENTRY(MINIX)
|
|
|
|
SECTIONS
|
|
|
|
{
|
2011-06-28 15:34:19 +02:00
|
|
|
. = 0x200000 + SIZEOF_HEADERS;
|
2010-05-19 15:24:15 +02:00
|
|
|
.text . : AT (ADDR(.text) - 0x0000) {
|
|
|
|
*(.text)
|
|
|
|
*(.text.*)
|
|
|
|
. = ALIGN(4096);
|
|
|
|
}
|
|
|
|
_etext = .;
|
|
|
|
etext = .;
|
|
|
|
|
|
|
|
.data . : AT (ADDR(.data) - 0x0000) {
|
|
|
|
_rodata = .;
|
|
|
|
/* kernel data starts with this magic number */
|
|
|
|
SHORT(0x526f);
|
|
|
|
*(.rodata)
|
|
|
|
*(.rodata.*)
|
|
|
|
_erodata = .;
|
|
|
|
*(.data)
|
|
|
|
*(.data.*)
|
2011-06-28 15:34:19 +02:00
|
|
|
. = ALIGN(4096);
|
2010-05-19 15:24:15 +02:00
|
|
|
}
|
|
|
|
_edata = .;
|
2011-06-28 15:34:19 +02:00
|
|
|
|
2010-05-19 15:24:15 +02:00
|
|
|
.bss . : AT (ADDR(.bss) - 0x0000) {
|
|
|
|
*(.bss)
|
|
|
|
*(.bss.*)
|
|
|
|
*(COMMON)
|
|
|
|
}
|
|
|
|
_end = .;
|
|
|
|
end = .;
|
|
|
|
|
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
*(.eh_frame)
|
|
|
|
*(.comment)
|
|
|
|
*(.comment.*)
|
|
|
|
*(.note)
|
|
|
|
*(.note.*)
|
|
|
|
}
|
|
|
|
}
|