ObjFW  Check-in [12db1e2cc2]

Overview
Comment:Use .init_array instead of .ctors on Solaris
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 12db1e2cc28eb8bccaca5da9f28d8e9b61c4d8412b6440805be637d01e93925d
User & Date: js on 2018-10-28 14:53:57
Other Links: manifest | tags
Context
2018-11-02
00:26
objfw-config: Improve help check-in: c3412a7a8e user: js tags: trunk
2018-10-28
14:53
Use .init_array instead of .ctors on Solaris check-in: 12db1e2cc2 user: js tags: trunk
11:57
Fix compilation on OpenIndiana check-in: 23b09a2f41 user: js tags: trunk
Changes

Modified src/forwarding/forwarding-sparc64-elf.S from [f1d9511b8b] to [450b63b827].

235
236
237
238
239
240
241



242

243
244
245
246
247
248
249
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253







+
+
+

+







	call	__objc_exec_class
	 restore

add_pc:
	jmp	%o7 + 8
	 add	%l7, %o7, %l7

#ifdef OF_SOLARIS
.section .init_array, "aw"
#else
.section .ctors, "aw", %progbits
#endif
	.xword init

.section .rodata
str_forwardingTargetForSelector_:
	.asciz "forwardingTargetForSelector:"

.section .data

Modified src/forwarding/forwarding-x86-elf.S from [3ae158a5d8] to [d80c2094d2].

182
183
184
185
186
187
188



189

190
191
192
193
194
195
196
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200







+
+
+

+







	popl	%ebp
	ret

get_eip:
	movl	(%esp), %ebx
	ret

#ifdef OF_SOLARIS
.section .init_array, "aw"
#else
.section .ctors, "aw", %progbits
#endif
	.long init

.section .rodata
str_forwardingTargetForSelector_:
	.asciz "forwardingTargetForSelector:"

.section .data

Modified src/forwarding/forwarding-x86_64-elf.S from [d9fc5995df] to [a2d3a2df84].

195
196
197
198
199
200
201



202

203
204
205
206
207
208
209
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213







+
+
+

+







.type of_forward_stret, %function
.size of_forward_stret, .-of_forward_stret

init:
	leaq	module(%rip), %rdi
	jmp	__objc_exec_class@PLT

#ifdef OF_SOLARIS
.section .init_array, "aw"
#else
.section .ctors, "aw", %progbits
#endif
	.quad init

.section .rodata
str_forwardingTargetForSelector_:
	.asciz "forwardingTargetForSelector:"

.section .data