summaryrefslogtreecommitdiff
path: root/glibc/glibc-2.2.5/initfini-alpha.patch
blob: 94dc2aba258cfd633c8c7148832e4e0725a6aa8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- glibc-2.2.5/sysdeps/alpha/elf/initfini.c~initfini-alpha.patch	2004-09-03 19:00:33.000000000 -0500
+++ glibc-2.2.5/sysdeps/alpha/elf/initfini.c	2004-09-03 19:00:38.000000000 -0500
@@ -37,62 +37,62 @@
    files, all of which may have different GP values.  So we must reload
    the GP value from crti.o in crtn.o.  */
 
-__asm__ ("
-
-#include \"defs.h\"
-
-/*@HEADER_ENDS*/
-
-/*@_init_PROLOG_BEGINS*/
-	.section .init, \"ax\", @progbits
-	.globl	_init
-	.ent	_init
-_init:
-	ldgp	$29, 0($27)
-	subq	$30, 16, $30
-	lda	$27, __gmon_start__
-	stq	$26, 0($30)
-	stq	$29, 8($30)
-	.prologue 1
-	beq	$27, 1f
-	jsr	$26, ($27), __gmon_start__
-	ldq	$29, 8($30)
-1:
-	.align 3
-	.end	_init
-	.size	_init, 0
-/*@_init_PROLOG_ENDS*/
-
-/*@_init_EPILOG_BEGINS*/
-	.section .init, \"ax\", @progbits
-	ldq	$26, 0($30)
-	ldq	$29, 8($30)
-	addq	$30, 16, $30
-	ret
-/*@_init_EPILOG_ENDS*/
-
-/*@_fini_PROLOG_BEGINS*/
-	.section .fini, \"ax\", @progbits
-	.globl	_fini
-	.ent	_fini
-_fini:
-	ldgp	$29, 0($27)
-	subq	$30, 16, $30
-	stq	$26, 0($30)
-	stq	$29, 8($30)
-	.prologue 1
-	.align 3
-	.end	_fini
-	.size	_fini, 0
-/*@_fini_PROLOG_ENDS*/
-
-/*@_fini_EPILOG_BEGINS*/
-	.section .fini, \"ax\", @progbits
-	ldq	$26, 0($30)
-	ldq	$29, 8($30)
-	addq	$30, 16, $30
-	ret
-/*@_fini_EPILOG_ENDS*/
-
-/*@TRAILER_BEGINS*/
+__asm__ ("\n\
+\n\
+#include \"defs.h\"\n\
+\n\
+/*@HEADER_ENDS*/\n\
+\n\
+/*@_init_PROLOG_BEGINS*/\n\
+	.section .init, \"ax\", @progbits\n\
+	.globl	_init\n\
+	.ent	_init\n\
+_init:\n\
+	ldgp	$29, 0($27)\n\
+	subq	$30, 16, $30\n\
+	lda	$27, __gmon_start__\n\
+	stq	$26, 0($30)\n\
+	stq	$29, 8($30)\n\
+	.prologue 1\n\
+	beq	$27, 1f\n\
+	jsr	$26, ($27), __gmon_start__\n\
+	ldq	$29, 8($30)\n\
+1:\n\
+	.align 3\n\
+	.end	_init\n\
+	.size	_init, 0\n\
+/*@_init_PROLOG_ENDS*/\n\
+\n\
+/*@_init_EPILOG_BEGINS*/\n\
+	.section .init, \"ax\", @progbits\n\
+	ldq	$26, 0($30)\n\
+	ldq	$29, 8($30)\n\
+	addq	$30, 16, $30\n\
+	ret\n\
+/*@_init_EPILOG_ENDS*/\n\
+\n\
+/*@_fini_PROLOG_BEGINS*/\n\
+	.section .fini, \"ax\", @progbits\n\
+	.globl	_fini\n\
+	.ent	_fini\n\
+_fini:\n\
+	ldgp	$29, 0($27)\n\
+	subq	$30, 16, $30\n\
+	stq	$26, 0($30)\n\
+	stq	$29, 8($30)\n\
+	.prologue 1\n\
+	.align 3\n\
+	.end	_fini\n\
+	.size	_fini, 0\n\
+/*@_fini_PROLOG_ENDS*/\n\
+\n\
+/*@_fini_EPILOG_BEGINS*/\n\
+	.section .fini, \"ax\", @progbits\n\
+	ldq	$26, 0($30)\n\
+	ldq	$29, 8($30)\n\
+	addq	$30, 16, $30\n\
+	ret\n\
+/*@_fini_EPILOG_ENDS*/\n\
+\n\
+/*@TRAILER_BEGINS*/\n\
 ");