View | Details | Raw Unified | Return to bug 18421
Collapse All | Expand All

(-)a/sysdeps/hppa/start.S (-2 / +14 lines)
Lines 42-48 Link Here
42
	/* Have the linker create plabel words so we get PLABEL32
42
	/* Have the linker create plabel words so we get PLABEL32
43
	   relocs and not 21/14.  The use of 21/14 relocs is only
43
	   relocs and not 21/14.  The use of 21/14 relocs is only
44
	   supported in the latest dynamic linker.  */
44
	   supported in the latest dynamic linker.  */
45
	.section	.rodata
45
#ifdef SHARED
46
	.section	.data.rel.ro,"aw",@progbits
47
#else
48
	.section	.rodata,"a",@progbits
49
#endif
46
	.align 4
50
	.align 4
47
.Lpmain:
51
.Lpmain:
48
	.word P%main
52
	.word P%main
Lines 52-57 Link Here
52
	.word P%__libc_csu_fini
56
	.word P%__libc_csu_fini
53
.Lp__libc_csu_init:
57
.Lp__libc_csu_init:
54
	.word P%__libc_csu_init
58
	.word P%__libc_csu_init
59
#ifdef SHARED
60
.Lp__global:
61
	.word $global$
62
#endif
55
63
56
	.text
64
	.text
57
	.align 4
65
	.align 4
Lines 122-131 _start: Link Here
122
	/* void *stack_end (7th argument) */
130
	/* void *stack_end (7th argument) */
123
	stw	%sp, -60(%sp)
131
	stw	%sp, -60(%sp)
124
132
133
#ifdef SHARED
134
	addil	LT'.Lp__global, %r19
135
	ldw	RT'.Lp__global(%r1), %dp
136
#else
125
	/* load global */
137
	/* load global */
126
	ldil	L%$global$, %dp
138
	ldil	L%$global$, %dp
127
	ldo	R%$global$(%dp), %dp
139
	ldo	R%$global$(%dp), %dp
128
140
#endif
129
	bl	__libc_start_main,%r2
141
	bl	__libc_start_main,%r2
130
	nop
142
	nop
131
	/* die horribly if it returned (it shouldn't) */
143
	/* die horribly if it returned (it shouldn't) */

Return to bug 18421