Change the global pointer symbol to __global_pointer$
[riscv-tests.git] / debug / targets / spike / link.lds
1 OUTPUT_ARCH( "riscv" )
2
3 SECTIONS
4 {
5 /* Leave some space for pk's data structures, which includes tohost/fromhost
6 * which are special addresses we ought to leave alone. */
7 . = 0x80010000;
8 .text :
9 {
10 *(.text.entry)
11 *(.text)
12 }
13
14 /* data segment */
15 .data : { *(.data) }
16
17 .sdata : {
18 __global_pointer$ = . + 0x800;
19 *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2)
20 *(.srodata*)
21 *(.sdata .sdata.* .gnu.linkonce.s.*)
22 }
23
24 /* bss segment */
25 .sbss : {
26 *(.sbss .sbss.* .gnu.linkonce.sb.*)
27 *(.scommon)
28 }
29 .bss : { *(.bss) }
30
31 __malloc_start = .;
32 . = . + 512;
33
34 /* End of uninitalized data segement */
35 _end = .;
36 }