Displaying 9 results from an estimated 9 matches for "_read_images".
2010 Apr 26
3
[LLVMdev] r102300 breaks Obj-C codegen on Darwin x86
...d: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x913d3348 _objc_search_builtins + 299
1 libobjc.A.dylib 0x913d313e __sel_registerName + 44
2 libobjc.A.dylib 0x913d6269 map_method_descs + 47
3 libobjc.A.dylib 0x913d4094 _read_images + 2116
4 libobjc.A.dylib 0x913e9933 map_images_nolock + 1545
5 libobjc.A.dylib 0x913d30d9 map_images + 72
6 dyld 0x8fe03ecc dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_inf...
2010 Apr 26
0
[LLVMdev] r102300 breaks Obj-C codegen on Darwin x86
...ing generated.
# ./foo
Segmentation fault
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x6e697970
#0 0x913d3348 in _objc_search_builtins ()
#1 0x913d313e in __sel_registerName ()
#2 0x913d6269 in map_method_descs ()
#3 0x913d4094 in _read_images ()
#4 0x913e9933 in map_images_nolock ()
#5 0x913d30d9 in map_images ()
#6 0x8fe03ecc in __dyld__ZN4dyldL18notifyBatchPartialE17dyld_image_statesbPFPKcS0_jPK15dyld_image_infoE ()
#7 0x8fe04359 in __dyld__ZN4dyld36registerImageStateBatchChangeHandlerE17dyld_image_statesPFPKcS0_jPK15dyld_image_in...
2018 Feb 13
0
Is it possible to execute Objective-C code via LLVM JIT?
...to help out someone who wants to do this.
It would be nice to get this working without embedding any of
Objective-C to the host process this is why I am particularly
interested in knowing how to do the work that objc4 does in the
methods such as: objc4/_objc_init, objc4/map_images_nolock and
objc4/_read_images.
My understanding of the goal is to make the lli example from this
thread working:
https://stackoverflow.com/questions/10375324/all-selectors-unrecognised-when-invoking-objective-c-methods-using-the-llvm-exec.
I would be happy to get a hint on which functions of Objective-C
Runtime's public A...
2018 Feb 13
2
Is it possible to execute Objective-C code via LLVM JIT?
On 12 Feb 2018, at 22:31, Stanislav Pankevich via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Specifically I explored the latest objc4-723
> from Apple Open Source and it looks like all of the APIs that allow
> the registration of Objective-C classes, selectors, etc. are all very
> private.
The Objective-C runtime provides public APIs for doing all of this. They’re
2018 Feb 14
3
Is it possible to execute Objective-C code via LLVM JIT?
...embedding any of
> Objective-C to the host process this is
It’s an optimisation, not a compulsory part of the process.
> why I am particularly
> interested in knowing how to do the work that objc4 does in the
> methods such as: objc4/_objc_init, objc4/map_images_nolock and
> objc4/_read_images.
>
> My understanding of the goal is to make the lli example from this
> thread working:
> https://stackoverflow.com/questions/10375324/all-selectors-unrecognised-when-invoking-objective-c-methods-using-the-llvm-exec.
>
> I would be happy to get a hint on which functions of Obje...
2018 Feb 15
2
Is it possible to execute Objective-C code via LLVM JIT?
...C to the host process this is
>
> It’s an optimisation, not a compulsory part of the process.
>
> > why I am particularly
> > interested in knowing how to do the work that objc4 does in the
> > methods such as: objc4/_objc_init, objc4/map_images_nolock and
> > objc4/_read_images.
> >
> > My understanding of the goal is to make the lli example from this
> > thread working:
> > https://stackoverflow.com/questions/10375324/all-
> selectors-unrecognised-when-invoking-objective-c-methods-
> using-the-llvm-exec.
> >
> > I would be happy...
2018 Apr 06
0
Is it possible to execute Objective-C code via LLVM JIT?
...s
>>
>> It’s an optimisation, not a compulsory part of the process.
>>
>> > why I am particularly
>> > interested in knowing how to do the work that objc4 does in the
>> > methods such as: objc4/_objc_init, objc4/map_images_nolock and
>> > objc4/_read_images.
>> >
>> > My understanding of the goal is to make the lli example from this
>> > thread working:
>> >
>> > https://stackoverflow.com/questions/10375324/all-selectors-unrecognised-when-invoking-objective-c-methods-using-the-llvm-exec.
>> >
>&...
2018 May 03
2
Is it possible to execute Objective-C code via LLVM JIT?
...an optimisation, not a compulsory part of the process.
> >>
> >> > why I am particularly
> >> > interested in knowing how to do the work that objc4 does in the
> >> > methods such as: objc4/_objc_init, objc4/map_images_nolock and
> >> > objc4/_read_images.
> >> >
> >> > My understanding of the goal is to make the lli example from this
> >> > thread working:
> >> >
> >> > https://stackoverflow.com/questions/10375324/all-
> selectors-unrecognised-when-invoking-objective-c-methods-
> usi...
2012 May 08
3
[LLVMdev] Running Objective-C in the JIT
Thanks for the info!
Yes, the problem is certainly that the JITed code isn't registering
its classes, but even after digging through all the runtime code I
can't find anything that seems suitable for doing this.. The nearest
function I could find was _objc_init_image, but that seems to be for
win32!
I assume that the way it works must be that clang creates some static
data structures