source: rtems/c/src/lib/libbsp/bfin/eZKit533/startup/linkcmds @ 2a65e6d5

4.104.115
Last change on this file since 2a65e6d5 was 2a65e6d5, checked in by Joel Sherrill <joel.sherrill@…>, on 09/16/08 at 20:13:39

2008-09-16 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, startup/linkcmds: Use top level shared bsp_get_work_area() implementation.
  • Property mode set to 100644
File size: 3.6 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 : 0x0;
13_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
14
15MEMORY
16{
17      sdram(rwx)    : ORIGIN = 0x00001000, LENGTH = 0x01000000
18      l1code(rwx)   : ORIGIN = 0xffa08000, LENGTH = 0x00008000
19      l1data(rwx)   : ORIGIN = 0xff804000, LENGTH = 0x00004000
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        _WorkAreaBase = .;
105         _end = .;
106         __end = .;
107    } > sdram
108   
109/* Debugging stuff follows */
110
111  /* Stabs debugging sections.  */
112  .stab 0 : { *(.stab) }
113  .stabstr 0 : { *(.stabstr) }
114  .stab.excl 0 : { *(.stab.excl) }
115  .stab.exclstr 0 : { *(.stab.exclstr) }
116  .stab.index 0 : { *(.stab.index) }
117  .stab.indexstr 0 : { *(.stab.indexstr) }
118  .comment 0 : { *(.comment) }
119  /* DWARF debug sections.
120     Symbols in the DWARF debugging sections are relative to the beginning
121     of the section so we begin them at 0.  */
122  /* DWARF 1 */
123  .debug          0 : { *(.debug) }
124  .line           0 : { *(.line) }
125  /* GNU DWARF 1 extensions */
126  .debug_srcinfo  0 : { *(.debug_srcinfo) }
127  .debug_sfnames  0 : { *(.debug_sfnames) }
128  /* DWARF 1.1 and DWARF 2 */
129  .debug_aranges  0 : { *(.debug_aranges) }
130  .debug_pubnames 0 : { *(.debug_pubnames) }
131  /* DWARF 2 */
132  .debug_info     0 : { *(.debug_info) }
133  .debug_abbrev   0 : { *(.debug_abbrev) }
134  .debug_line     0 : { *(.debug_line) }
135  .debug_frame    0 : { *(.debug_frame) }
136  .debug_str      0 : { *(.debug_str) }
137  .debug_loc      0 : { *(.debug_loc) }
138  .debug_macinfo  0 : { *(.debug_macinfo) }
139  /* SGI/MIPS DWARF 2 extensions */
140  .debug_weaknames 0 : { *(.debug_weaknames) }
141  .debug_funcnames 0 : { *(.debug_funcnames) }
142  .debug_typenames 0 : { *(.debug_typenames) }
143  .debug_varnames  0 : { *(.debug_varnames) }
144  /*.stack 0x80000 : { _stack = .; *(.stack) }*/
145  /* These must appear regardless of  .  */   
146}
147
148__HeapSize = _HeapSize;
149__edata = _edata;
150__etext = _etext;
Note: See TracBrowser for help on using the repository browser.