GithubHelp home page GithubHelp logo

Comments (6)

DeVaukz avatar DeVaukz commented on July 18, 2024

LC_SYMTAB only provides the locations of the symbol and string tables. LC_DYSYMTAB provides much more information including where to find the rebasing information plus the ranges of local, external, and undefined symbols within the symbol table, and much more. Checkout the comments for struct dysymtab_command in <mach-o/loader.h>

from macho-kit.

vedon avatar vedon commented on July 18, 2024

@DeVaukz Thank you ! Is the LC_DYSYMTAB contain the LC_SYMTAB? LC_SYMTAB is the subset of the LC_DYSYMTAB?

from macho-kit.

DeVaukz avatar DeVaukz commented on July 18, 2024

No. They are separate but LC_SYMTAB must be present if LC_DYSYMTAB is present.

from macho-kit.

vedon avatar vedon commented on July 18, 2024

@DeVaukz ok ,I get that .If i have one symbol ,could you have any idea to confirm the range of the symbol in assembly ? Just like the pic show?

b91c654d-288a-4e19-a3b6-1864ea28f811

from macho-kit.

DeVaukz avatar DeVaukz commented on July 18, 2024

Symbols relate a name to a specific address, not a range. You would need to parse the assembly code beginning at the address associated with the target function's symbol, stopping when you encounter another prolog (which signifies the beginning of a new function) in order to find the end of your target function.

from macho-kit.

vedon avatar vedon commented on July 18, 2024

@DeVaukz thx ! I know how to deal with this

from macho-kit.

Related Issues (18)

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.