Differences From Artifact [4b872d6763]:
- File
src/forwarding/forwarding-x86-elf.S
— part of check-in
[a338982b3b]
at
2023-10-25 22:26:18
on branch trunk
— Move x86/ELF assembly back to Intel syntax
This used to be in Intel syntax, but was moved back to AT&T syntax for
consistency with the Mach-O version, where the assembler doesn't support
the Intel syntax properly. However, it makes more sense to use Intel
syntax where possible. (user: js, size: 3446) [annotate] [blame] [check-ins using]
To Artifact [7d07165df3]:
- File src/forwarding/forwarding-x86-elf.S — part of check-in [cb18f26404] at 2023-10-28 18:35:43 on branch trunk — Use more local labels in assembly (user: js, size: 3486) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
26 27 28 29 30 31 32 | OFForward: push ebp mov ebp, esp push ebx sub esp, 20 | | | | | | 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 | OFForward: push ebp mov ebp, esp push ebx sub esp, 20 call .LgetEIP add ebx, offset _GLOBAL_OFFSET_TABLE_ mov eax, [ebp + 8] mov [esp], eax call object_getClass@PLT mov [esp], eax lea eax, [ebx + .Lsel_forwardingTargetForSelector_@GOTOFF] mov [esp + 4], eax call class_respondsToSelector@PLT test eax, eax jz short 0f mov eax, [ebp + 8] mov [esp], eax lea eax, [ebx + .Lsel_forwardingTargetForSelector_@GOTOFF] mov [esp + 4], eax call objc_msg_lookup@PLT mov edx, [ebp + 8] mov [esp], edx lea edx, [ebx + .Lsel_forwardingTargetForSelector_@GOTOFF] mov [esp + 4], edx mov edx, [ebp + 12] mov [esp + 8], edx call eax test eax, eax jz short 0f |
︙ | ︙ | |||
90 91 92 93 94 95 96 | OFForward_stret: push ebp mov ebp, esp push ebx sub esp, 20 | | | | | | 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 | OFForward_stret: push ebp mov ebp, esp push ebx sub esp, 20 call .LgetEIP add ebx, offset _GLOBAL_OFFSET_TABLE_ mov eax, [ebp + 12] mov [esp], eax call object_getClass@PLT mov [esp], eax lea eax, [ebx + .Lsel_forwardingTargetForSelector_@GOTOFF] mov [esp + 4], eax call class_respondsToSelector@PLT test eax, eax jz short 0f mov eax, [ebp + 12] mov [esp], eax lea eax, [ebx + .Lsel_forwardingTargetForSelector_@GOTOFF] mov [esp + 4], eax call objc_msg_lookup@PLT mov edx, [ebp + 12] mov [esp], edx lea edx, [ebx + .Lsel_forwardingTargetForSelector_@GOTOFF] mov [esp + 4], edx mov edx, [ebp + 16] mov [esp + 8], edx call eax test eax, eax jz short 0f |
︙ | ︙ | |||
147 148 149 150 151 152 153 | pop ebx pop ebp jmp eax .type OFForward_stret, %function .size OFForward_stret, .-OFForward_stret | | | | | | | | | | | | | | 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 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | pop ebx pop ebp jmp eax .type OFForward_stret, %function .size OFForward_stret, .-OFForward_stret .Linit: push ebp mov ebp, esp push ebx sub esp, 4 call .LgetEIP add ebx, offset _GLOBAL_OFFSET_TABLE_ lea eax, [ebx + .Lmodule@GOTOFF] mov [esp], eax call __objc_exec_class@PLT add esp, 4 pop ebx pop ebp ret .LgetEIP: mov ebx, [esp] ret #ifdef OF_SOLARIS .section .init_array, "aw" #else .section .ctors, "aw", %progbits #endif .long .Linit .section .rodata .Lstr_forwardingTargetForSelector_: .asciz "forwardingTargetForSelector:" .section .data .Lsel_forwardingTargetForSelector_: .long .Lstr_forwardingTargetForSelector_, 0 .long 0, 0 .Lsymtab: .long 0, .Lsel_forwardingTargetForSelector_ .short 0, 0 .long 0 .long 0 .Lmodule: .long 8, 16, 0, .Lsymtab #if defined(OF_LINUX) || defined(OF_HAIKU) || defined(OF_HURD) .section .note.GNU-stack, "", %progbits #endif |