xv6-65oo2/kernel.ld

34 lines
434 B
Plaintext
Raw Normal View History

2019-05-31 13:45:59 +00:00
OUTPUT_ARCH( "riscv" )
ENTRY( _entry )
2011-08-07 16:30:34 +00:00
SECTIONS
{
2019-05-31 13:45:59 +00:00
/*
* ensure that entry.S / _entry is at 0x80000000,
* where qemu's -kernel jumps.
*/
. = 0x80000000;
.text :
{
*(.text)
. = ALIGN(0x1000);
*(trampoline)
}
2011-08-07 16:30:34 +00:00
2019-05-31 13:45:59 +00:00
. = ALIGN(0x1000);
PROVIDE(etext = .);
2011-08-07 16:30:34 +00:00
2019-05-31 13:45:59 +00:00
/*
* make sure end is after data and bss.
*/
.data : {
*(.data)
}
bss : {
*(.bss)
}
2011-08-07 16:30:34 +00:00
2019-05-31 13:45:59 +00:00
. = ALIGN(0x1000);
PROVIDE(end = .);
2011-08-07 16:30:34 +00:00
}