OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [examples/] [boot/] [makefiles/] [test.ld] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 sergeykhbr
/*----------------------------------------------------------------------*/
2
/* Setup                                                                */
3
/*----------------------------------------------------------------------*/
4
 
5
/* The OUTPUT_ARCH command specifies the machine architecture where the
6
   argument is one of the names used in the BFD library. More
7
   specifically one of the entires in bfd/cpu-mips.c */
8
 
9
OUTPUT_ARCH( "riscv" )
10
 
11
/*----------------------------------------------------------------------*/
12
/* Sections                                                             */
13
/*----------------------------------------------------------------------*/
14
 
15
SECTIONS
16
{
17
 
18
  /* text: test code section */
19
  . = 0x0000;
20
  .text :
21
  {
22
    ../linuxbuild/obj/crt.o(.text)
23
  }
24
 
25
  /* data segment */
26
  .data : { *(.data) }
27
 
28
  .sdata : {
29
    _gp = . + 0x800;
30
    *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) *(.srodata*)
31
    *(.sdata .sdata.* .gnu.linkonce.s.*)
32
  }
33
 
34
  /* bss segment */
35
  .sbss : {
36
    *(.sbss .sbss.* .gnu.linkonce.sb.*)
37
    *(.scommon)
38
  }
39
  .bss : { *(.bss) }
40
 
41
  /* thread-local data segment */
42
  .tdata :
43
  {
44
    _tls_data = .;
45
    ../linuxbuild/obj/crt.o(.tdata.begin)
46
    *(.tdata)
47
    ../linuxbuild/obj/crt.o(.tdata.end)
48
  }
49
  .tbss :
50
  {
51
    *(.tbss)
52
    ../linuxbuild/obj/crt.o(.tbss.end)
53
  }
54
 
55
  /* End of uninitalized data segement */
56
  _end = .;
57
}
58
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.