source: rtems/c/src/lib/libbsp/powerpc/gen405/startup/linkcmds.dl @ c112b70b

4.104.114.84.95
Last change on this file since c112b70b was c112b70b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/15/03 at 08:06:07

2003-12-15 Ralf Corsepius <corsepiu@…>

  • startup/linkcmds: Remove SEARCH_DIR.
  • startup/linkcmds.dl: Remove SEARCH_DIR.
  • Property mode set to 100644
File size: 2.8 KB
Line 
1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the helas403
4 *  This file is intended to be used together with dlentry.s
5 *  it will generate downloadable code
6 *
7 *  $Id$
8 */
9
10OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc",
11              "elf32-powerpc")
12OUTPUT_ARCH(powerpc)
13 
14ENTRY(download_entry)
15 
16MEMORY
17  {
18        RAM : ORIGIN = 0, LENGTH = 8M
19        FLASH : ORIGIN = 0xFFF00000, LENGTH = 512K
20  }
21 
22SECTIONS
23{
24  .vectors : 0x00010100
25  {
26    *(.vectors)
27  } > RAM
28
29  .text :
30  {
31     text.start = . ;
32     *(.entry)
33     *(.entry2)
34     *(.text)
35     *(.rodata)
36     *(.rodata1)
37
38     /*
39      * Special FreeBSD sysctl sections.
40      */
41     . = ALIGN (16);
42     __start_set_sysctl_set = .;
43     *(set_sysctl_*);
44     __stop_set_sysctl_set = ABSOLUTE(.);
45     *(set_domain_*);
46     *(set_pseudo_*);
47
48     *.(eh_frame)
49     *(.descriptors)
50     *(rom_ver)
51     etext = ALIGN(0x10);
52     _etext = .;
53
54
55     __CTOR_LIST__ = .;
56     LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
57     *(.ctors)
58     LONG(0)
59     __CTOR_END__ = .;
60
61     __DTOR_LIST__ = .;
62     LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
63     *(.dtors)
64     LONG(0)
65     __DTOR_END__ = .;
66
67     *(.lit)
68     *(.shdata)
69     *(.init)
70     *(.fini)
71     _endtext = ALIGN(0x10);
72     text.end = .;
73  } > RAM
74
75  text.size = text.end - text.start;
76
77  /* R/W Data */
78  .data :
79  {
80    *(.data)
81    *(.data1)
82    PROVIDE (__SDATA_START__ = .);
83    *(.sdata)
84  } > RAM
85 
86  PROVIDE (__EXCEPT_START__ = .);
87  .gcc_except_table   :
88  {
89        *(.gcc_except_table)
90  } >RAM
91  PROVIDE (__EXCEPT_END__ = .);
92
93  __GOT_START__ = .;
94  .got :
95  {
96     s.got = .;
97     *(.got.plt) *(.got)
98  } > RAM
99  __GOT_END__ = .;
100
101  .got1 :
102  {
103        *(.got1)               
104  } >RAM
105
106  PROVIDE (__GOT2_START__ = .);
107  PROVIDE (_GOT2_START_ = .);
108  .got2           : 
109  {
110        *(.got2)       
111  } >RAM
112  PROVIDE (__GOT2_END__ = .);
113  PROVIDE (_GOT2_END_ = .);
114
115  PROVIDE (__FIXUP_START__ = .);
116  PROVIDE (_FIXUP_START_ = .);
117  .fixup          : { *(.fixup)         } >RAM
118  PROVIDE (_FIXUP_END_ = .);
119  PROVIDE (__FIXUP_END__ = .);
120 
121  PROVIDE (__SDATA2_START__ = .);
122  .sdata2         : { *(.sdata2)        } >RAM
123  .sbss2          : { *(.sbss2)         } >RAM
124  PROVIDE (__SBSS2_END__ = .);
125
126  .sbss2          : { *(.sbss2)         } >RAM
127  PROVIDE (__SBSS2_END__ = .);
128
129  __SBSS_START__ = .;
130  .bss :
131  {
132    bss.start = .;
133    *(.bss) *(.sbss) *(COMMON)
134    bss.end = ALIGN(4);
135  } > RAM
136  __SBSS_END__ = .;
137 
138  bss.size = bss.end - bss.start;
139  PROVIDE(_end = bss.end);
140
141  .line 0 : { *(.line) }
142  .debug 0 : { *(.debug) }
143  .debug_sfnames 0 : { *(.debug_sfnames) }
144  .debug_srcinfo 0 : { *(.debug_srcinfo) }
145  .debug_pubnames 0 : { *(.debug_pubnames) }
146  .debug_aranges 0 : { *(.debug_aranges) }
147  .debug_aregion 0 : { *(.debug_aregion) }
148  .debug_macinfo 0 : { *(.debug_macinfo) }
149  .stab 0 : { *(.stab) }
150  .stabstr 0 : { *(.stabstr) }
151}
152
153
Note: See TracBrowser for help on using the repository browser.