source: rtems/c/src/lib/libbsp/powerpc/helas403/startup/linkcmds.dl @ 0b5da30a

4.104.114.84.95
Last change on this file since 0b5da30a was 0b5da30a, checked in by Joel Sherrill <joel.sherrill@…>, on 04/08/02 at 15:56:57

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

  • startup/linkcmds, startup/linkcmds.dl : Per PR170, PR171, and PR172 add .eh_frame.
  • Property mode set to 100644
File size: 2.6 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 SEARCH_DIR(/usr/local/powerpc-rtems/lib);
14 
15ENTRY(download_entry)
16 
17MEMORY
18  {
19        RAM : ORIGIN = 0, LENGTH = 8M
20        FLASH : ORIGIN = 0xFFF00000, LENGTH = 512K
21  }
22 
23SECTIONS
24{
25  .vectors : 0x00010100
26  {
27    *(.vectors)
28  } > RAM
29
30  .text :
31  {
32     text.start = . ;
33     *(.entry)
34     *(.entry2)
35     *(.text)
36     *(.rodata)
37     *(.rodata1)
38     *.(eh_frame)
39     *(.descriptors)
40     *(rom_ver)
41     etext = ALIGN(0x10);
42     _etext = .;
43
44
45     __CTOR_LIST__ = .;
46     LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
47     *(.ctors)
48     LONG(0)
49     __CTOR_END__ = .;
50
51     __DTOR_LIST__ = .;
52     LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
53     *(.dtors)
54     LONG(0)
55     __DTOR_END__ = .;
56
57     *(.lit)
58     *(.shdata)
59     *(.init)
60     *(.fini)
61     _endtext = ALIGN(0x10);
62     text.end = .;
63  } > RAM
64
65  text.size = text.end - text.start;
66
67  /* R/W Data */
68  .data :
69  {
70    *(.data)
71    *(.data1)
72    PROVIDE (__SDATA_START__ = .);
73    *(.sdata)
74  } > RAM
75 
76  PROVIDE (__EXCEPT_START__ = .);
77  .gcc_except_table   :
78  {
79        *(.gcc_except_table)
80  } >RAM
81  PROVIDE (__EXCEPT_END__ = .);
82
83  __GOT_START__ = .;
84  .got :
85  {
86     s.got = .;
87     *(.got.plt) *(.got)
88  } > RAM
89  __GOT_END__ = .;
90
91  .got1 :
92  {
93        *(.got1)               
94  } >RAM
95
96  PROVIDE (__GOT2_START__ = .);
97  PROVIDE (_GOT2_START_ = .);
98  .got2           : 
99  {
100        *(.got2)       
101  } >RAM
102  PROVIDE (__GOT2_END__ = .);
103  PROVIDE (_GOT2_END_ = .);
104
105  PROVIDE (__FIXUP_START__ = .);
106  PROVIDE (_FIXUP_START_ = .);
107  .fixup          : { *(.fixup)         } >RAM
108  PROVIDE (_FIXUP_END_ = .);
109  PROVIDE (__FIXUP_END__ = .);
110 
111  PROVIDE (__SDATA2_START__ = .);
112  .sdata2         : { *(.sdata2)        } >RAM
113  .sbss2          : { *(.sbss2)         } >RAM
114  PROVIDE (__SBSS2_END__ = .);
115
116  .sbss2          : { *(.sbss2)         } >RAM
117  PROVIDE (__SBSS2_END__ = .);
118
119  __SBSS_START__ = .;
120  .bss :
121  {
122    bss.start = .;
123    *(.bss) *(.sbss) *(COMMON)
124    bss.end = ALIGN(4);
125  } > RAM
126  __SBSS_END__ = .;
127 
128  bss.size = bss.end - bss.start;
129  PROVIDE(_end = bss.end);
130
131  .line 0 : { *(.line) }
132  .debug 0 : { *(.debug) }
133  .debug_sfnames 0 : { *(.debug_sfnames) }
134  .debug_srcinfo 0 : { *(.debug_srcinfo) }
135  .debug_pubnames 0 : { *(.debug_pubnames) }
136  .debug_aranges 0 : { *(.debug_aranges) }
137  .debug_aregion 0 : { *(.debug_aregion) }
138  .debug_macinfo 0 : { *(.debug_macinfo) }
139  .stab 0 : { *(.stab) }
140  .stabstr 0 : { *(.stabstr) }
141}
142
143
Note: See TracBrowser for help on using the repository browser.