source: rtems/c/src/lib/libbsp/powerpc/eth_comm/startup/linkcmds @ 907ef1f6

4.104.114.84.95
Last change on this file since 907ef1f6 was 238f450, checked in by Joel Sherrill <joel.sherrill@…>, on 04/08/02 at 15:56:21

2001-04-08 Joel Sherrill <joel@…>

  • startup/linkcmds: Per PR170, PR171, and PR172 add .eh_frame
  • Property mode set to 100644
File size: 4.1 KB
Line 
1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the Ethernet-Comm Board
4 *
5 *  $Id$
6 */
7
8OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc",
9              "elf32-powerpc")
10OUTPUT_ARCH(powerpc)
11 SEARCH_DIR(/usr/local/powerpc-rtems/lib);
12 
13ENTRY(start)
14 
15MEMORY
16        {
17        ram : org = 0x0, l = 4M
18        dpram : org = 0xff000000, l = 16K
19        canbus : org = 0xff100000, l = 12K
20        flash : org = 0xfff00000, l = 512K
21        }
22
23
24SECTIONS
25{
26        .vectors :
27        {
28          *(.vectors)
29        } >ram
30
31        /*
32         * The stack will live in this area - between the vectors and
33         * the text section.
34         */
35       
36        .text 0x10000:
37        {
38             text.start = .;
39             *(.entry)
40             *(.entry2)
41             *(.text)
42             *(.rodata)
43             *(.eh_frame)
44             *(.gnu.linkonce.r*)
45             *(.rodata1)
46             *(.gnu.linkonce.t.*)
47             *(.descriptors)
48             /* .gnu.warning sections are handled specially by elf32.em.  */
49             *(.gnu.warning)
50             *(rom_ver)
51             etext = ALIGN(0x10);
52             _etext = .;
53       
54             __CTOR_LIST__ = .;
55             LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
56             *(.ctors)
57             LONG(0)
58             __CTOR_END__ = .;
59       
60             __DTOR_LIST__ = .;
61             LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
62             *(.dtors)
63             LONG(0)
64             __DTOR_END__ = .;
65       
66             *(.lit)
67             *(.shdata)
68             _init = .; *(.init)
69             _fini = .; *(.fini)
70             _endtext = .;
71             text.end = .;
72        } > ram
73 
74        /* R/W Data */
75        .data :
76        {
77          *(.data)
78          *(.data1)
79          *(.gnu.linkonce.d.*)
80          PROVIDE (__SDATA_START__ = .);
81          *(.sdata)
82        } > ram
83       
84        PROVIDE (__EXCEPT_START__ = .);
85        .gcc_except_table   : { *(.gcc_except_table) } >RAM
86        PROVIDE (__EXCEPT_END__ = .);
87        __GOT_START__ = .;
88        .got :
89        {
90           s.got = .;
91           *(.got.plt) *(.got)
92        } > ram
93        __GOT_END__ = .;
94       
95        .got1             : { *(.got1)          } >ram
96        PROVIDE (__GOT2_START__ = .);
97        PROVIDE (_GOT2_START_ = .);
98        .got2             :  { *(.got2)         } >ram
99        PROVIDE (__GOT2_END__ = .);
100        PROVIDE (_GOT2_END_ = .);
101       
102        PROVIDE (__FIXUP_START__ = .);
103        PROVIDE (_FIXUP_START_ = .);
104        .fixup    : { *(.fixup)         } >ram
105        PROVIDE (_FIXUP_END_ = .);
106        PROVIDE (__FIXUP_END__ = .);
107         
108        PROVIDE (__SDATA2_START__ = .);
109        .sdata2           : { *(.sdata2)        } >ram
110        .sbss2            : { *(.sbss2)         } >ram
111        PROVIDE (__SBSS2_END__ = .);
112       
113        .sbss2            : { *(.sbss2)         } >ram
114        PROVIDE (__SBSS2_END__ = .);
115       
116        __SBSS_START__ = .;
117        .bss :
118        {
119          bss.start = .;
120          *(.bss) *(.sbss) *(COMMON)
121          . = ALIGN(4);
122          bss.end = .;
123        } > ram
124        __SBSS_END__ = .;
125
126        bss.size = bss.end - bss.start;
127        text.size = text.end - text.start;
128        PROVIDE(_end = bss.end);
129        /*
130         * Interrupt stack setup
131         */
132
133        IntrStack_start = ALIGN(0x10);
134        . += 0x4000;
135        intrStack = .;
136        PROVIDE(intrStackPtr = intrStack);
137       
138        dpram :
139        {
140          m8xx = .;
141          _m8xx = .;
142          . += (8 * 1024);
143        } >dpram
144
145        canbus :
146        {
147          canbus0 = .;
148          . += (0x1000);
149          canbus1 = .;
150          . += (0x1000);
151          canbus2 = .;
152          . += (0x1000);
153        } >canbus
154
155
156  /* Stabs debugging sections.  */
157  .stab 0 : { *(.stab) }
158  .stabstr 0 : { *(.stabstr) }
159  .stab.excl 0 : { *(.stab.excl) }
160  .stab.exclstr 0 : { *(.stab.exclstr) }
161  .stab.index 0 : { *(.stab.index) }
162  .stab.indexstr 0 : { *(.stab.indexstr) }
163  .comment 0 : { *(.comment) }
164
165  /* DWARF debug sections.
166     Symbols in the DWARF debugging sections are relative to the beginning
167     of the section so we begin them at 0.  */
168  /* DWARF 1 */
169  .debug          0 : { *(.debug) }
170  .line           0 : { *(.line) }
171 
172  /* GNU DWARF 1 extensions */
173  .debug_srcinfo  0 : { *(.debug_srcinfo) }
174  .debug_sfnames  0 : { *(.debug_sfnames) }
175 
176  /* DWARF 1.1 and DWARF 2 */
177  .debug_aranges  0 : { *(.debug_aranges) }
178  .debug_pubnames 0 : { *(.debug_pubnames) }
179 
180  /* DWARF 2 */
181  .debug_info     0 : { *(.debug_info) }
182  .debug_abbrev   0 : { *(.debug_abbrev) }
183  .debug_line     0 : { *(.debug_line) }
184  .debug_frame    0 : { *(.debug_frame) }
185  .debug_str      0 : { *(.debug_str) }
186  .debug_loc      0 : { *(.debug_loc) }
187  .debug_macinfo  0 : { *(.debug_macinfo) }
188 
189  /* SGI/MIPS DWARF 2 extensions */
190  .debug_weaknames 0 : { *(.debug_weaknames) }
191  .debug_funcnames 0 : { *(.debug_funcnames) }
192  .debug_typenames 0 : { *(.debug_typenames) }
193  .debug_varnames  0 : { *(.debug_varnames) }
194  /* These must appear regardless of  .  */
195
196}
Note: See TracBrowser for help on using the repository browser.