Giter Club home page Giter Club 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 (temporarily disabled)
  • 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 2 (nm, Objective-C runtime, linker)
    • satisfy lldb
  • 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...
    • 14.0 DP6 - AppleIntelKBLGraphicsMTLDriver
    • 14.0 DP6 - AppKit, QuartzCore, Metal...
  • support Big Sur
  • support Monterey
  • support Ventura
  • support Sonoma
  • 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dsce's Issues

ReBuild OCLP to fix lldb

Hi. I am using oclp to get broadcom into sonoma. I saw that in this commit 57415de the bug with lldb is fixed. Can you tell me how to build oclp with these changes?

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.