Comments (6)
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.
@DeVaukz Thank you ! Is the LC_DYSYMTAB contain the LC_SYMTAB? LC_SYMTAB is the subset of the LC_DYSYMTAB?
from macho-kit.
No. They are separate but LC_SYMTAB must be present if LC_DYSYMTAB is present.
from macho-kit.
@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?
from macho-kit.
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.
@DeVaukz thx ! I know how to deal with this
from macho-kit.
Related Issues (18)
- Unclear installation instructions HOT 8
- Error on getting String Table HOT 4
- Replace @import with #import for support of .mm files HOT 1
- The node description system should be reworked further
- Swift metadata parsing
- Modernize the dyld shared cache parser
- Improve testing
- can i get the category Class, such as name HOT 2
- Any chance to support CocoaPods? HOT 4
- Handle Chained Fixups
- Handle “Small” ObjC Method Lists HOT 1
- Can not find MKDataModel+Layout_Internal.h HOT 2
- Missing include HOT 1
- Infinite recursion in core.h when __cplusplus defined
- Some wrong libMachO includes in MachOKit HOT 1
- Example of symbols enumeration HOT 6
- __cfstring Section HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macho-kit.