search for: __objc_selrefs

Displaying 6 results from an estimated 6 matches for "__objc_selrefs".

Did you mean: __objc_selref
2011 Nov 23
0
[LLVMdev] (no subject)
Hi All, I was wondering if someone could help illuminate me… I took a very simple objective-c file, "simple" and started looking at various sections… Finally I did… $otool -X -s __DATA __objc_selrefs simple 00003034 00002fec 00002fe7 00002fd7 00002fcc 00003044 00002fc6 00002ff2 $ otool -l simple | grep selrefs -A20 sectname __objc_selrefs segname __DATA addr 0x00003034 size 0x00000018 offset 8244 align 2^2 (4) reloff 0 nreloc 0 flags 0x10000005 reserved...
2012 Aug 18
1
[LLVMdev] GlobalVariable initializer using from beyond the grave
...emoved are still showing up as uses for global variables that I haven't yet removed. E.g., I couldn't erase: @"\01L_OBJC_SELECTOR_REFERENCES_" = internal global i8* getelementptr inbounds ([20 x i8]* inttoptr (i64 4295929920 to [20 x i8]*), i32 0, i32 0), section "__DATA, __objc_selrefs, literal_pointers, no_dead_strip" because the initializer for @llvm.used = appending global [2 x i8*] [i8* getelementptr inbounds ([20 x i8]* inttoptr (i64 4295929920 to [20 x i8]*), i32 0, i32 0), i8* bitcast (i8** @"\01L_OBJC_SELECTOR_REFERENCES_" to i8*)] which I had previous...
2018 Apr 06
0
Is it possible to execute Objective-C code via LLVM JIT?
...t I can hook into SectionMemory by subclassing it and working with its allocateDataSection method: 1) I collect pointers to objc-related sections for which the memory is allocated. Before SectionMemoryManager::finalizeMemory() method is called I register the ObjC runtime classes. 2) I iterate over __objc_selrefs sections and fixup selectors. This does fix the original crash of this thread. 3) I iterate over __objc_classlist sections and register the new classes using objc_allocateClassPair function, register the properties and ivars to these new classes, run objc_registerClassPair to complete the registrat...
2018 Feb 15
2
Is it possible to execute Objective-C code via LLVM JIT?
Hi David, Stanislav, Sorry for the delayed reply. Short version: There hasn't been any progress on this just yet, as I have been busy with an overhaul of the underlying ORC APIs. 1) Hack up something in RuntimeDyldMachO to handle the data structures > currently generated by clang. This is fragile, because the interface > between the compiler and the runtime is not documented, and is
2018 May 03
2
Is it possible to execute Objective-C code via LLVM JIT?
...ry by > subclassing it and working with its allocateDataSection method: > > 1) I collect pointers to objc-related sections for which the memory is > allocated. Before SectionMemoryManager::finalizeMemory() method is > called I register the ObjC runtime classes. > 2) I iterate over __objc_selrefs sections and fixup selectors. This > does fix the original crash of this thread. > 3) I iterate over __objc_classlist sections and register the new > classes using objc_allocateClassPair function, register the properties > and ivars to these new classes, run objc_registerClassPair to co...
2018 Feb 14
3
Is it possible to execute Objective-C code via LLVM JIT?
> On 13 Feb 2018, at 17:42, Stanislav Pankevich <s.pankevich at gmail.com> wrote: > > On Tue, Feb 13, 2018 at 12:18 PM, David Chisnall > <David.Chisnall at cl.cam.ac.uk> wrote: >> 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 >>>