source: rtems/c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds @ 7b0c547a

4.104.114.84.95
Last change on this file since 7b0c547a was 7b0c547a, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/03 at 19:53:27

2003-01-20 Joel Sherrill <joel@…>

  • startup/linkcmds: Add FreeBSD SYSCTL() sections for networking.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/* OUTPUT_FORMAT("coff-c4x") */
2 __SYSMEM_SIZE = DEFINED(__SYSMEM_SIZE) ? __SYSMEM_SIZE : 0x4000;
3 __STACK_SIZE  = DEFINED(__STACK_SIZE)  ? __STACK_SIZE  : 0x1000;
4 __HeapSize = DEFINED(__HeapSize) ? __HeapSize : 0x10000;
5 __WorkspaceMax = DEFINED(__WorkspaceMax) ? __WorkspaceMax : 256K;
6 __ClockFrequency = DEFINED(_ClockFrequency) ? _ClockFrequency : 50;
7ENTRY(_start)
8SECTIONS
9{
10  .vectors : {
11    . += 4 * 64;
12  }
13  .text 0x200 : {
14    *(.text)
15
16    /*
17     * Special FreeBSD sysctl sections.
18     */
19    . = ALIGN (16);
20    __start_set_sysctl_set = .;
21    *(set_sysctl_*);
22    __stop_set_sysctl_set = ABSOLUTE(.);
23    *(set_domain_*);
24    *(set_pseudo_*);
25
26     ___CTOR_LIST__ = .;
27     LONG(___CTOR_END__ - ___CTOR_LIST__ - 2)
28     *(.ctors)
29     LONG(0);
30     ___CTOR_END__  = .;
31     ___DTOR_LIST__ = .;
32     LONG(___DTOR_END__ - ___DTOR_LIST__ - 2)
33     *(.dtors)
34     LONG(0)
35     ___DTOR_END__  = .;
36  }
37  .init : { *(.init) }
38  .fini : { *(.fini) }
39  .const  :
40  {                                     
41    *(.const)
42  }
43  .cinit  :
44  {                                     
45    *(.cinit)
46  }
47  .data  :
48  {                             
49    *(.data)
50  }
51  .comms  : {
52    *(.comms)
53  }
54  .bss  : {
55       
56    .bss = .;
57    *(.bss)
58    *(COMMON)
59  }
60  .stack  :
61  {                                     
62    *(.stack)
63     .  =  . + __STACK_SIZE;           
64  }
65  .heap  :
66  {                                     
67    __HeapStart = .;
68    . += __HeapSize;
69    __WorkspaceBase = .;
70    . += __WorkspaceMax;
71  }
72/*
73  .sysmem  :
74  {                                     
75    *(.sysmem)
76  }
77*/
78  .stab  0  :
79  {
80    [ .stab ]
81  }
82  .stabstr  0  :
83  {
84    [ .stabstr ]
85  }
86/* The TI tools sets cinit to -1 if the ram model is used.  */
87}
Note: See TracBrowser for help on using the repository browser.