1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2008-2022 Jonathan Schleifer <js@nil.im>
*
* All rights reserved.
*
* This file is part of ObjFW. It may be distributed under the terms of the
* Q Public License 1.0, which can be found in the file LICENSE.QPL included in
* the packaging of this file.
*
|
|
|
1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2008-2023 Jonathan Schleifer <js@nil.im>
*
* All rights reserved.
*
* This file is part of ObjFW. It may be distributed under the terms of the
* Q Public License 1.0, which can be found in the file LICENSE.QPL included in
* the packaging of this file.
*
|
︙ | | | ︙ | |
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
OFForward:
pushl %ebp
movl %esp, %ebp
pushl %ebx
subl $20, %esp
call get_eip
addl $_GLOBAL_OFFSET_TABLE_, %ebx
movl 8(%ebp), %eax
movl %eax, (%esp)
call object_getClass@PLT
movl %eax, (%esp)
|
|
|
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
OFForward:
pushl %ebp
movl %esp, %ebp
pushl %ebx
subl $20, %esp
call getEIP
addl $_GLOBAL_OFFSET_TABLE_, %ebx
movl 8(%ebp), %eax
movl %eax, (%esp)
call object_getClass@PLT
movl %eax, (%esp)
|
︙ | | | ︙ | |
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
|
addl $20, %esp
popl %ebx
popl %ebp
jmp *%eax
0:
leal OFMethodNotFound@GOTOFF(%ebx), %eax
addl $20, %esp
popl %ebx
popl %ebp
jmp *%eax
.type OFForward, %function
.size OFForward, .-OFForward
OFForward_stret:
pushl %ebp
movl %esp, %ebp
pushl %ebx
subl $20, %esp
call get_eip
addl $_GLOBAL_OFFSET_TABLE_, %ebx
movl 12(%ebp), %eax
movl %eax, (%esp)
call object_getClass@PLT
movl %eax, (%esp)
|
|
|
|
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
|
addl $20, %esp
popl %ebx
popl %ebp
jmp *%eax
0:
movl OFMethodNotFound@GOT(%ebx), %eax
addl $20, %esp
popl %ebx
popl %ebp
jmp *%eax
.type OFForward, %function
.size OFForward, .-OFForward
OFForward_stret:
pushl %ebp
movl %esp, %ebp
pushl %ebx
subl $20, %esp
call getEIP
addl $_GLOBAL_OFFSET_TABLE_, %ebx
movl 12(%ebp), %eax
movl %eax, (%esp)
call object_getClass@PLT
movl %eax, (%esp)
|
︙ | | | ︙ | |
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
addl $20, %esp
popl %ebx
popl %ebp
jmp *%eax
0:
leal OFMethodNotFound_stret@GOTOFF(%ebx), %eax
addl $20, %esp
popl %ebx
popl %ebp
jmp *%eax
.type OFForward_stret, %function
.size OFForward_stret, .-OFForward_stret
init:
pushl %ebp
movl %esp, %ebp
pushl %ebx
subl $4, %esp
call get_eip
addl $_GLOBAL_OFFSET_TABLE_, %ebx
leal module@GOTOFF(%ebx), %eax
movl %eax, (%esp)
call __objc_exec_class@PLT
addl $4, %esp
popl %ebx
popl %ebp
ret
get_eip:
movl (%esp), %ebx
ret
#ifdef OF_SOLARIS
.section .init_array, "aw"
#else
.section .ctors, "aw", %progbits
|
|
|
|
|
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
addl $20, %esp
popl %ebx
popl %ebp
jmp *%eax
0:
movl OFMethodNotFound_stret@GOT(%ebx), %eax
addl $20, %esp
popl %ebx
popl %ebp
jmp *%eax
.type OFForward_stret, %function
.size OFForward_stret, .-OFForward_stret
init:
pushl %ebp
movl %esp, %ebp
pushl %ebx
subl $4, %esp
call getEIP
addl $_GLOBAL_OFFSET_TABLE_, %ebx
leal module@GOTOFF(%ebx), %eax
movl %eax, (%esp)
call __objc_exec_class@PLT
addl $4, %esp
popl %ebx
popl %ebp
ret
getEIP:
movl (%esp), %ebx
ret
#ifdef OF_SOLARIS
.section .init_array, "aw"
#else
.section .ctors, "aw", %progbits
|
︙ | | | ︙ | |
191
192
193
194
195
196
197
198
199
200
|
.long 0, sel_forwardingTargetForSelector_
.short 0, 0
.long 0
.long 0
module:
.long 8, 16, 0, symtab
#ifdef OF_LINUX
.section .note.GNU-stack, "", %progbits
#endif
|
|
|
191
192
193
194
195
196
197
198
199
200
|
.long 0, sel_forwardingTargetForSelector_
.short 0, 0
.long 0
.long 0
module:
.long 8, 16, 0, symtab
#if defined(OF_LINUX) || defined(OF_HURD)
.section .note.GNU-stack, "", %progbits
#endif
|