source: rtems/c/src/lib/libbsp/bfin/eZKit533/startup/linkcmds @ 78897bc

4.104.114.84.95
Last change on this file since 78897bc was 78897bc, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/11/06 at 05:12:05

2006-11-11 Ralf Corsépius <ralf.corsepius@…>

  • startup/linkcmds: Use_start_set_sysctl_set, _stop_set_sysctl_set instead of start_set_sysctl_set, stop_set_sysctl_set (bfin uses '_' prefixed c-symbols.)
  • Property mode set to 100644
File size: 3.8 KB
Line 
1OUTPUT_FORMAT("elf32-bfin", "elf32-bfin",
2            "elf32-bfin")
3
4OUTPUT_ARCH(bfin)
5ENTRY(__start)
6
7/*
8 * Declare some sizes.
9 */
10_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
11_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000;
12_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
13_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
14
15MEMORY
16{
17      l1code(rwx)   : ORIGIN = 0xffa08000, LENGTH = 0x00008000
18      l1data(rwx)   : ORIGIN = 0xff804000, LENGTH = 0x00004000
19      sdram(rwx)    : ORIGIN = 0x00001000, LENGTH = 0x01000000
20}
21
22SECTIONS
23{
24
25    .l1code        :
26    {
27        /*jump.o (.text)*/
28    } > l1code
29
30    .init          :
31    {
32        KEEP (*(.init))
33    } > sdram   /*=0*/
34
35    .text :
36    {
37         CREATE_OBJECT_SYMBOLS
38        *(.text)
39        *(.rodata*)
40        *(.gnu.linkonce.r*)
41       
42        /*
43         * Special FreeBSD sysctl sections.
44         */
45        . = ALIGN (16);
46        ___start_set_sysctl_set = .;
47        *(set_sysctl_*);
48        ___stop_set_sysctl_set = ABSOLUTE(.);
49        *(set_domain_*);
50        *(set_pseudo_*);
51
52         _etext = .;
53
54        ___CTOR_LIST__ = .;
55        LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)
56        *(.ctors)
57        LONG(0)
58        ___CTOR_END__ = .;
59        ___DTOR_LIST__ = .;
60        LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)
61        *(.dtors)
62        LONG(0)
63        ___DTOR_END__ = .;         
64    } > sdram
65   
66    .fini :
67    {
68        KEEP (*(.fini))
69    } > sdram  /*=0*/
70   
71    .data :
72    {
73        *(.data)
74        *(.jcr)
75        *(.gnu.linkonce.d*)
76        CONSTRUCTORS
77         _edata = .;
78    } > sdram
79
80    .eh_frame : { *(.eh_frame) } > sdram
81    .data1   : { *(.data1) } > sdram
82    .eh_frame : { *(.eh_frame) } > sdram
83    .gcc_except_table : { *(.gcc_except_table) } > sdram
84
85    .rodata :
86    {
87        *(.rodata)
88        *(.rodata.*)
89        *(.gnu.linkonce.r*)
90    } > sdram
91
92   
93    .bss :
94    {
95         _bss_start = .;
96        _clear_start = .;
97        *(.bss)
98        *(.gnu.linkonce.b.*)
99        *(COMMON)
100        . = ALIGN (64);
101        _stack_init = .;
102        . += _StackSize;
103        _clear_end = .;
104        _WorkspaceBase = .;
105        . += 512K;      /* reserve some memory for workspace */
106        _HeapBase = .;
107        . += _HeapSize; /* reserve some memory for heap */
108         _end = .;
109         __end = .;
110    } > sdram
111   
112/* Debugging stuff follows */
113
114  /* Stabs debugging sections.  */
115  .stab 0 : { *(.stab) }
116  .stabstr 0 : { *(.stabstr) }
117  .stab.excl 0 : { *(.stab.excl) }
118  .stab.exclstr 0 : { *(.stab.exclstr) }
119  .stab.index 0 : { *(.stab.index) }
120  .stab.indexstr 0 : { *(.stab.indexstr) }
121  .comment 0 : { *(.comment) }
122  /* DWARF debug sections.
123     Symbols in the DWARF debugging sections are relative to the beginning
124     of the section so we begin them at 0.  */
125  /* DWARF 1 */
126  .debug          0 : { *(.debug) }
127  .line           0 : { *(.line) }
128  /* GNU DWARF 1 extensions */
129  .debug_srcinfo  0 : { *(.debug_srcinfo) }
130  .debug_sfnames  0 : { *(.debug_sfnames) }
131  /* DWARF 1.1 and DWARF 2 */
132  .debug_aranges  0 : { *(.debug_aranges) }
133  .debug_pubnames 0 : { *(.debug_pubnames) }
134  /* DWARF 2 */
135  .debug_info     0 : { *(.debug_info) }
136  .debug_abbrev   0 : { *(.debug_abbrev) }
137  .debug_line     0 : { *(.debug_line) }
138  .debug_frame    0 : { *(.debug_frame) }
139  .debug_str      0 : { *(.debug_str) }
140  .debug_loc      0 : { *(.debug_loc) }
141  .debug_macinfo  0 : { *(.debug_macinfo) }
142  /* SGI/MIPS DWARF 2 extensions */
143  .debug_weaknames 0 : { *(.debug_weaknames) }
144  .debug_funcnames 0 : { *(.debug_funcnames) }
145  .debug_typenames 0 : { *(.debug_typenames) }
146  .debug_varnames  0 : { *(.debug_varnames) }
147  /*.stack 0x80000 : { _stack = .; *(.stack) }*/
148  /* These must appear regardless of  .  */   
149}
150
151__HeapBase = _HeapBase;
152__HeapSize = _HeapSize;
153__WorkspaceBase = _WorkspaceBase;
154__edata = _edata;
155__etext = _etext;
Note: See TracBrowser for help on using the repository browser.