Repository navigation
Expand file tree
/
Copy pathdyld_info.1
More file actions
91 lines (91 loc) · 2.93 KB
/
Copy pathdyld_info.1
File metadata and controls
91 lines (91 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.Dd January 9, 2024
.Dt dyld_info 1
.Os Darwin
.Sh NAME
.Nm dyld_info
.Nd "Displays information used by dyld in programs and dylibs"
.Sh SYNOPSIS
.Nm
.Op Fl arch Ar arch-name
.Op Fl platform
.Op Fl segments
.Op Fl linked_dylibs
.Op Fl inits
.Op Fl exports
.Op Fl imports
.Op Fl objc
.Op Fl fixups
.Op Fl fixup_chains
.Op Fl fixup_chain_details
.Op Fl function_starts
.Op Fl symbolic_fixups
.Op Fl opcodes
.Op Fl uuid
.Op Fl disassemble
.Op Fl section Ar segment-name Ar section-name
.Op Fl all_sections
.Op Fl section_bytes Ar segment-name Ar section-name
.Op Fl all_sections_bytes
.Op Fl validate_only
.Ar file(s)
.Sh DESCRIPTION
The dyld_info tool will display information that dyld uses from binaries.
It supports fixups information encoded as opcode based or as chained fixups.
.Pp
If the tool is run with no options, it defaults to the common options
(-platform -segments -linked_dylibs).
.Pp
The tool can be run with paths to dylibs that are in the dyld cache and not on disk.
.Pp
The options are as follows:
.Bl -tag -width indent
.It Fl arch Ar arch
Only display the specified architecture. Other architectures in a universal image are ignored.
.It Fl platform
Display the platform (e.g. macOS, iOS) that the binary was built for.
.It Fl segments
Display all segments and sections with size info.
.It Fl linked_dylibs
Display all dylibs that the binary is linked against.
.It Fl inits
Display all static initializers and Objective-C +load methods.
.It Fl exports
Display all exported symbols.
.It Fl imports
Display all imported symbols.
.It Fl objc
Display the Objective-C classes and categories defined.
.It Fl fixups
Display a simple table of fixup locations and what dyld will set them to.
.It Fl fixup_chains
If the binary uses chained fixups, displays the format of the chains and the starts.
.It Fl fixup_chain_details
Display a table of all the raw fixup chain bits and their meanings.
.It Fl function_starts
Display the offset of all functions starts and their name.
.It Fl symbolic_fixups
Display all fixups, grouped by data symbol.
.It Fl opcodes
Display all the opcodes used to generate the rebase and binding information.
.It Fl uuid
Display the UUID of the binary.
.It Fl disassemble
Display a disassemble of all code sections.
.It Fl section Ar segment-name Ar section-name
Display content of specified section. Content is formatted if the content type is known.
.It Fl all_sections
Display content of all sections. Content is formatted if the content type is known.
.It Fl section_bytes Ar segment-name Ar section-name
Display content of specified section as hex bytes.
.It Fl all_sections_bytes
Display content of all sections as hex bytes.
.It Fl validate_only
Display nothing if binary is valid, or information about what parts are malformed.
.It Fl all_dir Ar directory
Will start at specified directory, recursively scan, and run dyld_info on each file found.
.It Fl all_dyld_cache
Will run dyld_info on every dylib in the dyld cache.
.El
.Sh SEE ALSO
.Xr otool 1
.Xr nm 1