summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds
blob: 87f46ad7af1df17c5786563cc107b28412222ced (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
OUTPUT_FORMAT("coff-c4x")
 __SYSMEM_SIZE = DEFINED(__SYSMEM_SIZE) ? __SYSMEM_SIZE : 0x4000;
 __STACK_SIZE  = DEFINED(__STACK_SIZE)  ? __STACK_SIZE  : 0x1000;
 __HeapSize = DEFINED(__HeapSize) ? __HeapSize : 0x10000;
 __WorkspaceMax = DEFINED(__WorkspaceMax) ? __WorkspaceMax : 256K;
 __ClockFrequency = DEFINED(_ClockFrequency) ? _ClockFrequency : 50;
ENTRY(_start)
SECTIONS
{
  .vectors : {
    . += 4 * 64;
  }
  .text 0x200 : {
    *(.text)
     ___CTOR_LIST__ = .;
     LONG(___CTOR_END__ - ___CTOR_LIST__ - 2)
     *(.ctors)
     LONG(0);
     ___CTOR_END__  = .;
     ___DTOR_LIST__ = .;
     LONG(___DTOR_END__ - ___DTOR_LIST__ - 2)
     *(.dtors)
     LONG(0)
     ___DTOR_END__  = .;
  }
  .init : { *(.init) }
  .fini : { *(.fini) }
  .const  :
  { 					
    *(.const)
  }
  .cinit  :
  { 					
    *(.cinit)
  }
  .data  :
  { 				
    *(.data)
  }
  .comms  : {
    *(.comms)
  } 
  .bss  : {
    	
    .bss = .;
    *(.bss)
    *(COMMON)
  }
  .stack  :
  { 					
    *(.stack)
     .  =  . + __STACK_SIZE;		
  }
  .heap  :
  { 					
    __HeapStart = .;
    . += __HeapSize;
    __WorkspaceBase = .;
    . += __WorkspaceMax;
  }
/*
  .sysmem  :
  { 					
    *(.sysmem)
  }
*/
  .stab  0  : 
  {
    [ .stab ]
  }
  .stabstr  0  :
  {
    [ .stabstr ]
  }
/* The TI tools sets cinit to -1 if the ram model is used.  */
}