Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 11678

Refer to a section of executable, library or object files that link memory addresses in the program and a string (the symbol). Symbols are used to store debug information, function names (for dynamic linking) and many other usages.

16 votes
2 answers
6k views

In a Mach-O executable, how can I find which function a stub targets?

To assist debugging, debuggers find stubs and pretend that they have symbols for them. … However, lldb does not use the pushed value: it appears to rely on the static linker placing undefined symbols and stubs in the same order, or some variant of that. …
zneak's user avatar
  • 331
7 votes
Accepted

In a Mach-O executable, how can I find which function a stub targets?

These two commands encode three import tables: bound symbols, weak symbols, and lazy symbols. … to __TEXT set offset to 0x40 set library to libSystem.dylib set symbol name to "printf" bind symbol set offset to 0x48 set symbol name to "scanf" bind symbol At the end of this sequence, you get two symbols
zneak's user avatar
  • 331