initial commit
[riscv-tests.git] / env / v / link.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 *(.text)
33 }
34
35 /* data: Initialized data segment */
36 .data ALIGN(0x2000):
37 {
38 *(.data)
39 }
40
41 /* bss: Initialized bss segment */
42 .bss ALIGN(0x2000):
43 {
44 *(.bss)
45 }
46
47 /* End of uninitalized bss segement */
48 _end = .;
49 }
50