mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2024-11-23 12:19:44 +00:00
Apple libobjc fixes
This commit is contained in:
parent
c8bdb97c1a
commit
8a615053eb
@ -46,6 +46,7 @@ set(objcdarwin_SRCS
|
||||
common/selector.cpp
|
||||
common/cfstring.cpp
|
||||
dso_handle.c
|
||||
dummy.c
|
||||
../../../util/debug.cpp
|
||||
|
||||
# These two should go into Foundation
|
||||
|
5
darling/dummy.c
Normal file
5
darling/dummy.c
Normal file
@ -0,0 +1,5 @@
|
||||
__attribute__((visibility("default")))
|
||||
void* _objc_empty_cache;
|
||||
__attribute__((visibility("default")))
|
||||
void* _objc_empty_vtable;
|
||||
|
@ -31,12 +31,12 @@ objc_msgSendSuper2:
|
||||
movq 8(%rax), %rax // load superclass
|
||||
movq %rax, -8(%rsp)
|
||||
|
||||
subq %rsp, 16
|
||||
subq $16, %rsp
|
||||
movq %rsp, %rdi
|
||||
|
||||
call objc_msg_lookup_super@PLT
|
||||
|
||||
addq %rsp, 16
|
||||
addq $16, %rsp
|
||||
|
||||
RestoreRegisters
|
||||
|
||||
@ -63,13 +63,13 @@ objc_msgSendSuper2_stret:
|
||||
movq 8(%rax), %rax // load superclass
|
||||
movq %rax, -8(%rsp)
|
||||
|
||||
subq %rsp, 16
|
||||
subq $16, %rsp
|
||||
movq %rsp, %rdi
|
||||
movq %rdx, %rsi
|
||||
|
||||
call objc_msg_lookup_super@PLT
|
||||
|
||||
addq %rsp, 16
|
||||
addq $16, %rsp
|
||||
|
||||
RestoreRegisters
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user