dda2a7f528ccd6e8b8ce964c03fefbf9995e4435
[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 /* The ENTRY command specifies the entry point (ie. first instruction
17 to execute). The symbol _start should be defined in each test. */
18
19 ENTRY( _start )
20
21 /*----------------------------------------------------------------------*/
22 /* Sections */
23 /*----------------------------------------------------------------------*/
24
25 SECTIONS
26 {
27
28 /* text: test code section */
29 . = 0x00002000;
30 .text :
31 {
32 crt.o(.text)
33 *(.text)
34 }
35
36 /* data segmemt */
37 .data : { *(.data) }
38 .bss : { *(.bss) }
39
40 /* thread-local data segment */
41 .tbss : {
42 crt.o(.tbss) /* Make sure tls_start is the first TLS symbol */
43 *(.tbss)
44 }
45 .tdata : { *(.tdata) }
46
47 /* End of uninitalized data segement */
48 _end = .;
49 }
50