Git Product home page Git Product logo

dsce's Introduction

dsce

Incomplete macOS 12+ dyld cache extractor. Used by OCLP to support some legacy GPUs and Wi-Fi hardware. Produces working binaries in many cases, but outputs should be treated with extreme suspicion...

credits

status

  • copy header and load commands
    • allocate space for additional commands
  • copy segments/sections, fixing offsets and alignment
    • optionally pad to keep addresses contiguous (produces 2+ GB images)
  • generate rebase opcodes
    • by applying cache rebase chain
  • generate bind opcodes
    • by scanning rebases for external pointers
      • matching imported dylib exports
      • recursing re-exported dylibs/symbols
    • by restoring uniqued __got section (Ventura)
    • using C++ addend hack
    • from weak/lazy bind info
  • generate exports trie
    • regular
    • re-export
    • stub and resolver
  • copy legacy symbols, indirect symbols, and string table
  • fix Objective-C structures
    • revert selector uniquing
    • revert protocol uniquing
    • fix class, category, and protocol method lists
    • create fake __objc_imageinfo (work around Ventura crash)
  • update UUIDs to D5CE<version>-... for visibility in logs (formerly 416D7900-...)
  • produce fully compliant images
    • satisfy install_name_tool -id test
    • satisfy codesign -fs -
    • satisfy dyld_info -objc
    • satisfy Stubber (nm, Objective-C runtime, linker)
    • satisfy lldb (unlikely outside pad mode...)
  • produce working images
    • 12.0 DP6 - GeForceAIRPlugin, GeForceMTLDriver
    • 12.0 DP6 - GeForceGLDriver
    • 12.6 - AppKit, QuartzCore, CoreGraphics, Carbon, RenderBox, VectorKit, Metal, MetalPerformanceShaders, MTLCompiler, GPUCompiler, AppleGVA, AppleGVACore
    • 12.6 - AMDMTLBronzeDriver, AMDShared, AMDRadeonVADriver, AMDRadeonVADriver2
    • 13.2.1 - AppKit, QuartzCore, CoreGraphics, Carbon, RenderBox, VectorKit, Metal, MetalPerformanceShaders, MTLCompiler, GPUCompiler
    • 13.2.1 - libSystem, Foundation, Combine, ContactsFoundation, FamilyCircle
  • support Big Sur
  • support Monterey
  • support Ventura
  • support arm64 (unlikely...)
  • use sane amounts of RAM and CPU (getting closer...)
  • write automated tests to detect regressions

dsce's People

Contributors

asentientbot avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.