[PATCH] D117173: [ORC-RT] Hook objc's class_getImageName for JITDylibs
    Ben Langmuir via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jan 12 16:42:41 PST 2022
    
    
  
benlangmuir created this revision.
benlangmuir added a reviewer: lhames.
Herald added a subscriber: hiraditya.
benlangmuir requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.
Use the objc runtime's callback to customize the image name for JITDylibs to match their name. This allows some mechanisms that look up files next to binaries to work correctly if the JITDylib name is a path (but not if they use dladdr or dyld_image_path_containing_address for now).
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D117173
Files:
  compiler-rt/lib/orc/executor_address.h
  compiler-rt/lib/orc/macho_platform.cpp
  compiler-rt/test/orc/TestCases/Darwin/x86-64/Inputs/FooClass.S
  compiler-rt/test/orc/TestCases/Darwin/x86-64/objc-class_getImageName.S
  compiler-rt/test/orc/lit.cfg.py
  llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
  llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117173.399512.patch
Type: text/x-patch
Size: 18397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220113/115b746c/attachment.bin>
    
    
More information about the llvm-commits
mailing list