Merge [shm]call into ecall, [shm]ret into eret
[riscv-tests.git] / benchmarks / common / test.ld
1 /*======================================================================*/
2 /* Proxy kernel linker script */
3 /*======================================================================*/
4 /* This is the linker script used when building the proxy kernel. */
5
6 /*----------------------------------------------------------------------*/
7 /* Setup */
8 /*----------------------------------------------------------------------*/
9
10 /* The OUTPUT_ARCH command specifies the machine architecture where the
11 argument is one of the names used in the BFD library. More
12 specifically one of the entires in bfd/cpu-mips.c */
13
14 OUTPUT_ARCH( "riscv" )
15
16 /*----------------------------------------------------------------------*/
17 /* Sections */
18 /*----------------------------------------------------------------------*/
19
20 SECTIONS
21 {
22
23 /* text: test code section */
24 . = 0;
25 .text :
26 {
27 crt.o(.text)
28 *(.text)
29 }
30
31 /* data segmemt */
32 .data : { *(.data) }
33 .bss : { *(.bss) }
34
35 /* thread-local data segment */
36 .tdata :
37 {
38 _tls_data = .;
39 crt.o(.tdata.begin)
40 *(.tdata)
41 crt.o(.tdata.end)
42 }
43 .tbss :
44 {
45 *(.tbss)
46 crt.o(.tbss.end)
47 }
48
49 /* End of uninitalized data segement */
50 _end = .;
51 }
52