]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/glibc/glibc-2.2.5/initfini-sh.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / glibc / glibc-2.2.5 / initfini-sh.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- glibc-2.2.5/sysdeps/sh/elf/initfini.c~initfini-sh.patch     2004-09-03 19:00:33.000000000 -0500
7 +++ glibc-2.2.5/sysdeps/sh/elf/initfini.c       2004-09-03 19:00:39.000000000 -0500
8 @@ -27,122 +27,122 @@
9     * crtn.s puts the corresponding function epilogues
10     in the .init and .fini sections. */
11  
12 -__asm__ ("
13 -
14 -#include \"defs.h\"
15 -#define SHARED
16 -
17 -/*@HEADER_ENDS*/
18 -
19 -/*@TESTS_BEGIN*/
20 -
21 -/*@TESTS_END*/
22 -
23 -/*@_init_PROLOG_BEGINS*/
24 -       .section .init
25 -       .align 5
26 -       .global _init
27 -       .type   _init,@function
28 -_init:
29 -       mov.l   r12,@-r15
30 -       mov.l   r14,@-r15
31 -       sts.l   pr,@-r15
32 -#ifdef SHARED
33 -       mova    .L22,r0
34 -       mov.l   .L22,r12
35 -       add     r0,r12
36 -       mova    .L23,r0
37 -       mov.l   .L23,r1
38 -       add     r0,r1
39 -#else
40 -       mov.l   .L23,r1
41 -#endif
42 -       jsr     @r1
43 -        mov    r15,r14
44 -       bra     1f
45 -        nop
46 -       .align 2
47 -#ifdef SHARED
48 -.L22:
49 -       .long   _GLOBAL_OFFSET_TABLE_
50 -.L23:
51 -       .long   __gmon_start__@PLT
52 -#else
53 -.L23:
54 -       .long   __gmon_start__
55 -#endif
56 -       .data
57 -       .global __fpscr_values
58 -__fpscr_values:
59 -       .long   0
60 -       .long   0x80000
61 -       .previous
62 -1:
63 -       ALIGN
64 -       END_INIT
65 -
66 -       
67 -/*@_init_PROLOG_ENDS*/
68 -
69 -/*@_init_EPILOG_BEGINS*/
70 -       .section .init
71 -       mov     r14,r15
72 -       lds.l   @r15+,pr
73 -       mov.l   @r15+,r14
74 -       rts     
75 -       mov.l   @r15+,r12
76 -       END_INIT
77 -       .section .text
78 -       .align 5
79 -       .weak   __gmon_start__
80 -       .type   __gmon_start__,@function
81 -__gmon_start__:
82 -       mov.l   r14,@-r15
83 -       mov     r15,r14
84 -       mov     r14,r15
85 -       rts     
86 -       mov.l   @r15+,r14
87 -       
88 -/*@_init_EPILOG_ENDS*/
89 -
90 -/*@_fini_PROLOG_BEGINS*/
91 -       .section .fini
92 -       .align 5
93 -       .global _fini
94 -       .type   _fini,@function
95 -_fini:
96 -       mov.l   r12,@-r15
97 -       mov.l   r14,@-r15
98 -       sts.l   pr,@-r15
99 -#ifdef SHARED
100 -       mova    .L27,r0
101 -       mov.l   .L27,r12
102 -       add     r0,r12
103 -#endif
104 -       mov     r15,r14
105 -       ALIGN
106 -       END_FINI
107 -#ifdef SHARED
108 -       bra     1f
109 -        nop
110 -       .align  2
111 -.L27:
112 -       .long   _GLOBAL_OFFSET_TABLE_
113 -#endif
114 -1:
115 -/*@_fini_PROLOG_ENDS*/
116 -
117 -/*@_fini_EPILOG_BEGINS*/
118 -       .section .fini
119 -       mov     r14,r15
120 -       lds.l   @r15+,pr
121 -       mov.l   @r15+,r14
122 -       rts     
123 -       mov.l   @r15+,r12
124 -
125 -       END_FINI
126 -       
127 -/*@_fini_EPILOG_ENDS*/
128 -
129 -/*@TRAILER_BEGINS*/
130 +__asm__ ("\n\
131 +\n\
132 +#include \"defs.h\"\n\
133 +#define SHARED\n\
134 +\n\
135 +/*@HEADER_ENDS*/\n\
136 +\n\
137 +/*@TESTS_BEGIN*/\n\
138 +\n\
139 +/*@TESTS_END*/\n\
140 +\n\
141 +/*@_init_PROLOG_BEGINS*/\n\
142 +       .section .init\n\
143 +       .align 5\n\
144 +       .global _init\n\
145 +       .type   _init,@function\n\
146 +_init:\n\
147 +       mov.l   r12,@-r15\n\
148 +       mov.l   r14,@-r15\n\
149 +       sts.l   pr,@-r15\n\
150 +#ifdef SHARED\n\
151 +       mova    .L22,r0\n\
152 +       mov.l   .L22,r12\n\
153 +       add     r0,r12\n\
154 +       mova    .L23,r0\n\
155 +       mov.l   .L23,r1\n\
156 +       add     r0,r1\n\
157 +#else\n\
158 +       mov.l   .L23,r1\n\
159 +#endif\n\
160 +       jsr     @r1\n\
161 +        mov    r15,r14\n\
162 +       bra     1f\n\
163 +        nop\n\
164 +       .align 2\n\
165 +#ifdef SHARED\n\
166 +.L22:\n\
167 +       .long   _GLOBAL_OFFSET_TABLE_\n\
168 +.L23:\n\
169 +       .long   __gmon_start__@PLT\n\
170 +#else\n\
171 +.L23:\n\
172 +       .long   __gmon_start__\n\
173 +#endif\n\
174 +       .data\n\
175 +       .global __fpscr_values\n\
176 +__fpscr_values:\n\
177 +       .long   0\n\
178 +       .long   0x80000\n\
179 +       .previous\n\
180 +1:\n\
181 +       ALIGN\n\
182 +       END_INIT\n\
183 +\n\
184 +       \n\
185 +/*@_init_PROLOG_ENDS*/\n\
186 +\n\
187 +/*@_init_EPILOG_BEGINS*/\n\
188 +       .section .init\n\
189 +       mov     r14,r15\n\
190 +       lds.l   @r15+,pr\n\
191 +       mov.l   @r15+,r14\n\
192 +       rts     \n\
193 +       mov.l   @r15+,r12\n\
194 +       END_INIT\n\
195 +       .section .text\n\
196 +       .align 5\n\
197 +       .weak   __gmon_start__\n\
198 +       .type   __gmon_start__,@function\n\
199 +__gmon_start__:\n\
200 +       mov.l   r14,@-r15\n\
201 +       mov     r15,r14\n\
202 +       mov     r14,r15\n\
203 +       rts     \n\
204 +       mov.l   @r15+,r14\n\
205 +       \n\
206 +/*@_init_EPILOG_ENDS*/\n\
207 +\n\
208 +/*@_fini_PROLOG_BEGINS*/\n\
209 +       .section .fini\n\
210 +       .align 5\n\
211 +       .global _fini\n\
212 +       .type   _fini,@function\n\
213 +_fini:\n\
214 +       mov.l   r12,@-r15\n\
215 +       mov.l   r14,@-r15\n\
216 +       sts.l   pr,@-r15\n\
217 +#ifdef SHARED\n\
218 +       mova    .L27,r0\n\
219 +       mov.l   .L27,r12\n\
220 +       add     r0,r12\n\
221 +#endif\n\
222 +       mov     r15,r14\n\
223 +       ALIGN\n\
224 +       END_FINI\n\
225 +#ifdef SHARED\n\
226 +       bra     1f\n\
227 +        nop\n\
228 +       .align  2\n\
229 +.L27:\n\
230 +       .long   _GLOBAL_OFFSET_TABLE_\n\
231 +#endif\n\
232 +1:\n\
233 +/*@_fini_PROLOG_ENDS*/\n\
234 +\n\
235 +/*@_fini_EPILOG_BEGINS*/\n\
236 +       .section .fini\n\
237 +       mov     r14,r15\n\
238 +       lds.l   @r15+,pr\n\
239 +       mov.l   @r15+,r14\n\
240 +       rts     \n\
241 +       mov.l   @r15+,r12\n\
242 +\n\
243 +       END_FINI\n\
244 +       \n\
245 +/*@_fini_EPILOG_ENDS*/\n\
246 +\n\
247 +/*@TRAILER_BEGINS*/\n\
248  ");