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 make dsymutil return 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 the DYLD_IMAGE_SUFFIX environment 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, so dsymutil knows where to look for dSYM files with debug information about symbols present in those libraries. (yes, she's tucked under --dump-debug-map in 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 .dwarf extension will be appended to the executable name unless the output file is specified using the -o option. 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_pubtypes sections, since dsymutil currently has better equivalents: .apple_names and .apple_types. when used in conjunction with the --update option, 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 helps dsymutil find 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 .dSYM to 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_names and .apple_types hashed 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 🌈

llvm-dwarfdump(1)


πŸ‘‘ AUTHOR πŸ‘‘

Maintained by the LLVM Team (https://llvm.org/). πŸ’–


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