dyld_info(1)
π dyld_info β the General Commands Manual page, but make it group chat
okay so this is dyld_info, straight out of the General Commands Manual, and she is literally here to spill all the dyld tea. π
πΈ NAME
dyld_info β displays information used by dyld in programs and dylibs. that's the whole assignment, and she ate.
β¨ SYNOPSIS
dyld_info [-arch arch-name] [-platform] [-segments] [-linked_dylibs]
[-inits] [-exports] [-imports] [-objc] [-fixups]
[-fixup_chains] [-fixup_chain_details] [-function_starts]
[-symbolic_fixups] [-opcodes] [-uuid] [-dlopens] [-dlsyms]
[-disassemble] [-section segment-name section-name]
[-all_sections] [-section_bytes segment-name section-name]
[-all_sections_bytes] [-validate_only] [-no_validate] file(s)
π DESCRIPTION
okay bestie, the dyld_info tool will display information that dyld uses from binaries. she supports fixups information encoded as opcode based or as chained fixups β both flavors, no cap. π₯
if the tool is run with no options, it defaults to the common options: -platform, -segments, -linked_dylibs. fr fr, zero options = those three, automatic.
and yes, the tool can be run with paths to dylibs that are in the dyld cache and not on disk. cache-only dylibs are welcome here, bestie. π«Ά
the options are as follows β every single one, because we do not skip:
-archarch β only display the specified architecture. other architectures in a universal image are ignored. bye to the rest, honestly.-platformβ display the platform (e.g. macOS, iOS) that the binary was built for.-segmentsβ display all segments and sections with size info.-linked_dylibsβ display all dylibs that the binary is linked against.-initsβ display all static initializers and Objective-C+loadmethods.-exportsβ display all exported symbols.-importsβ display all imported symbols.-objcβ display the Objective-C classes and categories defined.-fixupsβ display a simple table of fixup locations and what dyld will set them to.-fixup_chainsβ if the binary uses chained fixups, displays the format of the chains and the starts.-fixup_chain_headerβ display the fixup chains header fields.-fixup_chain_detailsβ display a table of all the raw fixup chain bits and their meanings.-symbolic_fixupsβ display all fixups, grouped by data symbol.-shared_regionβ displays split-seg information from dylib files that may be placed in the dyld cache.-function_startsβ display the offset of all functions starts and their name.-opcodesβ display all the opcodes used to generate the rebase and binding information.-load_commandsβ display the load commands in the binary.-uuidβ display the UUID of the binary.-function_variantsβ display info about function variants in the binary.-dlopensβ display calls todlopen()in the binary and if possible the path string used.-dlsymsβ display calls todlsym()in the binary and if possible the symbol string used.-disassembleβ display a disassemble of all code sections.-sectionsegment-name section-name β display content of specified section. content is formatted if the content type is known.-all_sectionsβ display content of all sections. content is formatted if the content type is known.-section_bytessegment-name section-name β display content of specified section as hex bytes.-all_sections_bytesβ display content of all sections as hex bytes.-validate_onlyβ display nothing if binary is valid, or information about what parts are malformed.-no_validateβ skip validation before inspecting binary.
bestie PSA: -no_validate skips validation before inspecting binary. that's literally the whole vibe, no extra lore. π
-all_dirdirectory β will start at specified directory, recursively scan, and rundyld_infoon each file found.-all_dyld_cacheβ will rundyld_infoon every dylib in the dyld cache.
π§ SEE ALSO
otool(1), nm(1) β go give them a little kiss, they're icons too. π
okay bye bestie β this page is from Darwin, dated May 5, 2025, and it's dyld_info(1). mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: dyld 1376.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms