[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linux/Clang/Libobjc2 failure part 2 (ng)
From: |
David Chisnall |
Subject: |
Re: Linux/Clang/Libobjc2 failure part 2 (ng) |
Date: |
Mon, 25 Jun 2018 10:16:44 +0100 |
On 24 Jun 2018, at 21:28, Riccardo Mottola <riccardo.mottola@libero.it> wrote:
>
> The patch doesn't apply clean anymore, the code looks changed enough!
>
> there is no objc_test_class_flag(class, objc_class_flag_new_abi) anymore?
> Where should I call objc_test_class_flag(class, objc_class_flag_new_abi))
> now? please check and perhaps update the patch to your changes, so I can test
> it.
Ah, sorry. The newer structure of the runtime upgrades all class structures to
the modern one in a single place. If you call objc_legacy_class_for_class()
and it doesn’t return anything, then it’s a GNUstep ABIv2 class, but you
shouldn’t need to do that - you can just unconditionally set the offset
variable that dlsym finds to the correct offset, if it finds a symbol.
David