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)
|
|
|
|
}
|
|
|
|
bss : {
|
|
|
|
*(.bss)
|
2019-06-04 14:43:45 +00:00
|
|
|
PROVIDE(end = .);
|
2019-05-31 13:45:59 +00:00
|
|
|
}
|
2019-06-13 10:49:02 +00:00
|
|
|
|
2011-08-07 16:30:34 +00:00
|
|
|
}
|