WIP on debug testing.
[riscv-tests.git] / debug / targets / m2gl_m2s / link.lds
1 OUTPUT_ARCH( "riscv" )
2
3 SECTIONS
4 {
5 . = 0x60040000;
6 .text :
7 {
8 *(.text.entry)
9 *(.text)
10 }
11
12 /* data segment */
13 .data : { *(.data) }
14
15 .sdata : {
16 _gp = . + 0x800;
17 *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2)
18 *(.srodata*)
19 *(.sdata .sdata.* .gnu.linkonce.s.*)
20 }
21
22 . = 0x80000000;
23
24 /* bss segment */
25 .sbss : {
26 *(.sbss .sbss.* .gnu.linkonce.sb.*)
27 *(.scommon)
28 }
29 .bss : { *(.bss) }
30
31 /* End of uninitalized data segement */
32 _end = .;
33 _heap_end = .;
34 }
35