mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2025-11-16 04:24:48 +00:00
50 lines
868 B
Plaintext
50 lines
868 B
Plaintext
OUTPUT_ARCH( "riscv" )
|
|
ENTRY( _start )
|
|
|
|
SECTIONS
|
|
{
|
|
/*
|
|
* ensure that entry.S / _entry is at 0x80000000,
|
|
* where qemu's -kernel jumps.
|
|
*/
|
|
. = 0x80000000;
|
|
|
|
.text : {
|
|
*(.text .text.*)
|
|
. = ALIGN(0x1000);
|
|
PROVIDE(etext = .);
|
|
}
|
|
|
|
.rodata : {
|
|
. = ALIGN(16);
|
|
*(.srodata .srodata.*) /* do not need to distinguish this from .rodata */
|
|
. = ALIGN(16);
|
|
*(.rodata .rodata.*)
|
|
}
|
|
|
|
.data : {
|
|
. = ALIGN(16);
|
|
*(.sdata .sdata.*) /* do not need to distinguish this from .data */
|
|
. = ALIGN(16);
|
|
*(.data .data.*)
|
|
}
|
|
|
|
.bss : {
|
|
. = ALIGN(16);
|
|
_bss_start = .;
|
|
*(.sbss .sbss.*) /* do not need to distinguish this from .bss */
|
|
. = ALIGN(16);
|
|
*(.bss .bss.*)
|
|
_bss_end = .;
|
|
}
|
|
|
|
.stack : {
|
|
. = ALIGN(4096);
|
|
_sysstack_start = .;
|
|
. += 0x1000;
|
|
_sysstack_end = .;
|
|
}
|
|
|
|
PROVIDE(_end = .);
|
|
}
|