1 | /*
|
---|
2 | * TOPPERS/OSEK Kernel
|
---|
3 | * Toyohashi Open Platform for Embedded Real-Time Systems/
|
---|
4 | * OSEK Kernel
|
---|
5 | *
|
---|
6 | * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
|
---|
7 | * Toyohashi Univ. of Technology, JAPAN
|
---|
8 | * Copyright (C) 2001-2003 by Industrial Technology Institute,
|
---|
9 | * Miyagi Prefectural Government, JAPAN
|
---|
10 | *
|
---|
11 | *
|
---|
12 | * ãLì ÒÍCÈºÌ (1)`(4) Ìð©CFree Software Foundation
|
---|
13 | * ÉæÁÄö\³êÄ¢é GNU General Public License Ì Version 2 ÉL
|
---|
14 | * q³êÄ¢éðð½·êÉÀèC{\tgEFAi{\tgEFA
|
---|
15 | * ðüϵ½àÌðÜÞDȺ¯¶jðgpE¡»EüÏEÄzziȺC
|
---|
16 | * pÆÄÔj·é±Æð³Åø·éD
|
---|
17 | * (1) {\tgEFAð\[XR[hÌ`Åp·éêÉÍCãLÌì
|
---|
18 | * \¦C±Ìpð¨æѺL̳ÛØKèªC»ÌÜÜÌ`Å\[
|
---|
19 | * XR[hÉÜÜêÄ¢é±ÆD
|
---|
20 | * (2) {\tgEFAðCCu`®ÈÇC¼Ì\tgEFAJÉg
|
---|
21 | * pÅ«é`ÅÄzz·éêÉÍCÄzzɺ¤hL
|
---|
22 | gip
|
---|
23 | * Ò}j
|
---|
24 | AÈÇjÉCãLÌì \¦C±Ìpð¨æѺL
|
---|
25 | * ̳ÛØKèðfÚ·é±ÆD
|
---|
26 | * (3) {\tgEFAðC@íÉgÝÞÈÇC¼Ì\tgEFAJÉg
|
---|
27 | * pÅ«È¢`ÅÄzz·éêÉÍCÌ¢¸ê©Ìðð½·±
|
---|
28 | * ÆD
|
---|
29 | * (a) Äzzɺ¤hL
|
---|
30 | gipÒ}j
|
---|
31 | AÈÇjÉCãLÌ
|
---|
32 | * ì \¦C±Ìpð¨æѺL̳ÛØKèðfÚ·é±ÆD
|
---|
33 | * (b) ÄzzÌ`ÔðCÊÉèßéû@ÉæÁÄCTOPPERSvWFNgÉ
|
---|
34 | * ñ·é±ÆD
|
---|
35 | * (4) {\tgEFAÌpÉæè¼ÚIܽÍÔÚIɶ¶é¢©Èé¹
|
---|
36 | * Q©çàCãLì Ò¨æÑTOPPERSvWFNgðÆÓ·é±ÆD
|
---|
37 | *
|
---|
38 | * {\tgEFAÍC³ÛØÅñ³êÄ¢éàÌÅ éDãLì Ò¨
|
---|
39 | * æÑTOPPERSvWFNgÍC{\tgEFAÉÖµÄC»ÌKpÂ\«à
|
---|
40 | * ÜßÄC¢©ÈéÛØàsíÈ¢DܽC{\tgEFAÌpÉæè¼
|
---|
41 | * ÚIܽÍÔÚIɶ¶½¢©Èé¹QÉÖµÄàC»ÌÓCðíÈ¢D
|
---|
42 | *
|
---|
43 | */
|
---|
44 |
|
---|
45 | OUTPUT_FORMAT("elf32-sh","elf32-sh","elf32-sh")
|
---|
46 | OUTPUT_ARCH(sh)
|
---|
47 | ENTRY(_start)
|
---|
48 |
|
---|
49 |
|
---|
50 | PROVIDE (__stack = 0) ;
|
---|
51 | PROVIDE(_hardware_init_hook = 0);
|
---|
52 | PROVIDE(_software_init_hook = 0);
|
---|
53 | PROVIDE(_software_term_hook = 0);
|
---|
54 |
|
---|
55 | SECTIONS
|
---|
56 | {
|
---|
57 | .vector : AT(0)
|
---|
58 | {
|
---|
59 | *(.vector)
|
---|
60 | }
|
---|
61 | .init :
|
---|
62 | {
|
---|
63 | KEEP (*(.init))
|
---|
64 | }
|
---|
65 | .text :
|
---|
66 | {
|
---|
67 | __text = . ;
|
---|
68 | *(.text .stub .text.* .gnu.linkonce.t.*)
|
---|
69 | }
|
---|
70 | .fini :
|
---|
71 | {
|
---|
72 | KEEP (*(.fini))
|
---|
73 | }
|
---|
74 | _etext = . ;
|
---|
75 | PROVIDE (etext = .) ;
|
---|
76 | .rodata :
|
---|
77 | {
|
---|
78 | *(.rodata .rodata.* .gnu.linkonce.r.*)
|
---|
79 | }
|
---|
80 | . = ALIGN(4) ;
|
---|
81 | __idata_start = . ;
|
---|
82 | .data : AT(__idata_start)
|
---|
83 | {
|
---|
84 | __data_start = . ;
|
---|
85 | *(.data)
|
---|
86 | }
|
---|
87 | .eh_frame : { KEEP (*(.eh_frame)) }
|
---|
88 | .gcc_except_table : { *(.gcc_except_table) }
|
---|
89 | .ctors :
|
---|
90 | {
|
---|
91 | KEEP (*crtbegin.o(.ctors))
|
---|
92 | KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
|
---|
93 | KEEP (*(SORT(.ctors.*)))
|
---|
94 | KEEP (*(.ctors))
|
---|
95 | }
|
---|
96 | .dtors :
|
---|
97 | {
|
---|
98 | KEEP (*crtbegin.o(.dtors))
|
---|
99 | KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
|
---|
100 | KEEP (*(SORT(.dtors.*)))
|
---|
101 | KEEP (*(.dtors))
|
---|
102 | }
|
---|
103 | __idata_end = __idata_start + SIZEOF(.data) ;
|
---|
104 | _edata = . ;
|
---|
105 | PROVIDE (edata = .) ;
|
---|
106 | . = ALIGN(4) ;
|
---|
107 | __bss_start = . ;
|
---|
108 | .bss :
|
---|
109 | {
|
---|
110 | *(.bss)
|
---|
111 | *(COMMON)
|
---|
112 | }
|
---|
113 | _end = . ;
|
---|
114 | __bss_end = . ;
|
---|
115 | PROVIDE (end = .) ;
|
---|
116 | .comment 0 : { *(.comment) }
|
---|
117 | .debug 0 : { *(.debug) }
|
---|
118 | .line 0 : { *(.line) }
|
---|
119 | .debug_srcinfo 0 : { *(.debug_srcinfo) }
|
---|
120 | .debug_sfnames 0 : { *(.debug_sfnames) }
|
---|
121 | .debug_aranges 0 : { *(.debug_aranges) }
|
---|
122 | .debug_pubnames 0 : { *(.debug_pubnames) }
|
---|
123 | }
|
---|