benchmarks initial commit
[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: Initialized data segment */
37 .data :
38 {
39 *(.data)
40 }
41
42 /* End of uninitalized data segement */
43 _end = .;
44 }
45