xv6-65oo2/kernel/kernel.ld

33 lines
428 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);
2019-07-26 08:53:46 +00:00
*(trampsec)
2019-05-31 13:45:59 +00:00
}
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)
}
2019-09-08 10:51:58 +00:00
.bss : {
2019-05-31 13:45:59 +00:00
*(.bss)
*(.sbss*)
PROVIDE(end = .);
2019-05-31 13:45:59 +00:00
}
2011-08-07 16:30:34 +00:00
}