source: rtems/c/src/lib/libbsp/powerpc/papyrus/startup/linkcmds @ df49c60

4.104.114.84.95
Last change on this file since df49c60 was 4ca5bd8, checked in by Joel Sherrill <joel.sherrill@…>, on 09/30/98 at 17:27:57

Changed based on patch from pc386 linkcmds from Ian Lance Taylor
<ian@…>:

The pc386 linker scripts omits .gnu.linkonce.r* sections. It's not a
big deal, but they should be treated like .rodata sections. ELF
versions of g++ generate them for static constants defined in template
classes, such as string::npos.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the Papyrus.
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(download_entry)
14 
15MEMORY
16  {
17        RAM : ORIGIN = 0, LENGTH = 4M
18        FLASH : ORIGIN = 0xFF000000, LENGTH = 0x80000
19        EPROM : ORIGIN = 0xFFFE0000, LENGTH = 0x20000
20  }
21 
22/* Do we need any of these for elf?
23   __DYNAMIC = 0;    */
24
25SECTIONS
26{
27  .vectors 0x0100 :
28  {
29    *(.vectors)
30  }
31 
32  .text 0x20000 :
33  {
34     *(.entry)
35     *(.entry2)
36     *(.text)
37     *(.rodata)
38     *(.gnu.linkonce.r*)
39     *(.rodata1)
40     *(.descriptors)
41     *(rom_ver)
42     etext = ALIGN(0x10);
43     _etext = .;
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 = .;
62  } > RAM
63 
64  /* R/W Data */
65  .data :
66  {
67    *(.data)
68    *(.data1)
69    PROVIDE (__SDATA_START__ = .);
70    *(.sdata)
71  } > RAM
72 
73  PROVIDE (__EXCEPT_START__ = .);
74  .gcc_except_table   : { *(.gcc_except_table) } >RAM
75  PROVIDE (__EXCEPT_END__ = .);
76  __GOT_START__ = .;
77  .got :
78  {
79     s.got = .;
80     *(.got.plt) *(.got)
81  } > RAM
82  __GOT_END__ = .;
83
84  .got1           : { *(.got1)          } >RAM
85  PROVIDE (__GOT2_START__ = .);
86  PROVIDE (_GOT2_START_ = .);
87  .got2           :  { *(.got2)         } >RAM
88  PROVIDE (__GOT2_END__ = .);
89  PROVIDE (_GOT2_END_ = .);
90
91  PROVIDE (__FIXUP_START__ = .);
92  PROVIDE (_FIXUP_START_ = .);
93  .fixup          : { *(.fixup)         } >RAM
94  PROVIDE (_FIXUP_END_ = .);
95  PROVIDE (__FIXUP_END__ = .);
96 
97  PROVIDE (__SDATA2_START__ = .);
98  .sdata2         : { *(.sdata2)        } >RAM
99  .sbss2          : { *(.sbss2)         } >RAM
100  PROVIDE (__SBSS2_END__ = .);
101
102  .sbss2          : { *(.sbss2)         } >RAM
103  PROVIDE (__SBSS2_END__ = .);
104
105  __SBSS_START__ = .;
106  .bss :
107  {
108    bss.start = .;
109    *(.bss) *(.sbss) *(COMMON)
110    bss.end = ALIGN(4);
111  } > RAM
112  __SBSS_END__ = .;
113 
114  bss.size = bss.end - bss.start;
115  PROVIDE(_end = bss.end);
116
117  .line 0 : { *(.line) }
118  .debug 0 : { *(.debug) }
119  .debug_sfnames 0 : { *(.debug_sfnames) }
120  .debug_srcinfo 0 : { *(.debug_srcinfo) }
121  .debug_pubnames 0 : { *(.debug_pubnames) }
122  .debug_aranges 0 : { *(.debug_aranges) }
123  .debug_aregion 0 : { *(.debug_aregion) }
124  .debug_macinfo 0 : { *(.debug_macinfo) }
125  .stab 0 : { *(.stab) }
126  .stabstr 0 : { *(.stabstr) }
127}
128
129
Note: See TracBrowser for help on using the repository browser.