DSYMUTIL(1)
π DSYMUTIL(1) π
okay so bestie, welcome to the dsymutil page β that's section 1 of the LLVM manual, and yes she is that girl. grab a boba, we're linking debug info π§β¨
β¨ NAME β¨
dsymutil β manipulate archived DWARF debug symbol files π¦
πΈ SYNOPSIS πΈ
dsymutil [options] executable
π DESCRIPTION π
So here's the vibe: dsymutil links up the DWARF debug information that lives inside the object files for an executable called executable, and it does that by using the debug symbol info sitting in its symbol table. π
By default, the linked debug info gets dropped into a .dSYM bundle with the same name as the executable. iconic behaviour honestly π
π OPTIONS π
--accelerator=<accelerator type>β pick which kind of accelerator table you want. the valid options are'Apple','Dwarf','Default'and'None'. choose your fighter β¨--arch <arch>β only link DWARF debug info for the CPU architecture types you name here. architectures can be specified by name. if you use this option and any architecture can't be properly linked, you get an error. you can pass this option multiple times β once for each architecture you want. by default all CPU architectures get linked, and any that can't be properly linked will makedsymutilreturn an error. no skipping, bestie π€--build-variant-suffix <suffix=buildvariant>β specify the build variant suffix used to build the executable file. a product's binary can have multiple variants, each built slightly differently. the most common build variants are'debug'and'profile'. setting theDYLD_IMAGE_SUFFIXenvironment variable will make dyld load the specified variant at runtime. π§--dump-debug-mapβ dump the executable's debug-map (that's the list of object files that contain the debug information) in YAML format and exit. no DWARF link will take place. just a lil peek, no commitment π-D <path>β specify a directory that contain dSYM files to search for. this is used for mergeable libraries, sodsymutilknows where to look for dSYM files with debug information about symbols present in those libraries. (yes, she's tucked under--dump-debug-mapin the original β we keep her right where she was π)
--fat64β use a 64-bit header when emitting universal binaries. thicc header energy π--flat,-fβ produce a flat dSYM file. a.dwarfextension will be appended to the executable name unless the output file is specified using the-ooption. flatten it, slay π--gen-reproducerβ generate a reproducer consisting of the input object files. alias for--reproducer=GenerateOnExit. β¨--help,-hβ print this help output. hi bestie π--keep-function-for-staticβ make a static variable keep the enclosing function even if it would have been omitted otherwise. don't let the function go, it's giving loyalty π«Ά--minimize,-zβ when used when creating a dSYM file, this option will suppress the emission of the.debug_inlines,.debug_pubnames, and.debug_pubtypessections, sincedsymutilcurrently has better equivalents:.apple_namesand.apple_types. when used in conjunction with the--updateoption, this option will cause redundant accelerator tables to be removed. declutter queen π§Ή--no-object-timestampβ don't check timestamp for object files. β°π«--no-odrβ do not use ODR (One Definition Rule) for uniquing C++ types. π--no-outputβ do the link in memory, but do not emit the result file. all vibes, no artifact π--no-swiftmodule-timestampβ don't check the timestamp for swiftmodule files. π¦--num-threads <threads>,-j <threads>β specifies the maximum number (n) of simultaneous threads to use when linking multiple architectures. multitasking main character π₯--object-prefix-map <prefix=remapped>β remap object file paths (but no source paths) before processing. use this for Clang objects where the module cache location was remapped using-fdebug-prefix-map; it helpsdsymutilfind the Clang module cache. πΊοΈ--oso-prepend-path <path>β specifies a path to prepend to all debug symbol object file paths. π--out <filename>,-o <filename>β specifies an alternate path to place the dSYM bundle. the default dSYM bundle path is created by appending.dSYMto the executable name. pick your own adventure π-q,--quietβ enable quiet mode and limit output. shhh, she's resting π€«--remarks-drop-without-debugβ drop remarks without valid debug locations. without this flags, all remarks are kept. (that's the original's wording, bestie, we don't touch it β¨)--remarks-output-format <format>β specify the format to be used when serializing the linked remarks. π--remarks-prepend-path <path>β specify a directory to prepend the paths of the external remark files. π--reproducer <mode>β specify the reproducer generation mode. valid options are'GenerateOnExit','GenerateOnCrash','Use','Off'. β--statisticsβ print statistics about the contribution of each object file to the linked debug info. this prints a table after linking with the object file name, the size of the debug info in the object file (in bytes) and the size contributed (in bytes) to the linked dSYM. the table is sorted by the output size, listing the object files with the largest contribution first. numbers girlie πβ¨-s,--symtabβ dumps the symbol table found in executable or object file(s) and exits. π-Sβ output textual assembly instead of a binary dSYM companion file. π§--toolchain <toolchain>β embed the toolchain in the dSYM bundle's property list. π-u,--updateβ update an existing dSYM file to contain the latest accelerator tables and other DWARF optimizations. this option will rebuild the.apple_namesand.apple_typeshashed accelerator tables. glow up in progress π--use-reproducer <path>β use the object files from the given reproducer path. alias for--reproducer=Use. π--verboseβ display verbose information when linking. she's telling you everything π£οΈ--verifyβ run the DWARF verifier on the linked DWARF debug info. vibe check on your debug info fr fr β-v,--versionβ display the version of the tool. π·οΈ-yβ treat executable as a YAML debug-map rather than an executable. plot twist π
π₯ EXIT STATUS π₯
dsymutil returns 0 if the DWARF debug information was linked successfully. otherwise, it returns 1. so basically: 0 = ate, 1 = did not eat π
π SEE ALSO π
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/). π
π COPYRIGHT π
2003-2025, LLVM Project
and that's the whole page bestie!! this was LLVM version 20, dated 2025-09-03, and it's the DSYMUTIL(1) manual β periodt π
β¨π¦ no cap, go link some debug info π«Ά
π¦ where this page comes from
- fedora 43: llvm20 20.1.8-2.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 43: llvm20 20.1.8-2.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm20 20.1.8-2.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm20 20.1.8-2.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms