DSYMUTIL(1)
π DSYMUTIL π
okay bestie, welcome to dsymutil, the LLVM girlie whose whole job is manipulating archived DWARF debug symbol files. Yes, that's a mouthful. No, we're not scared of it. She eats debug info for breakfast. β¨
πΈ SYNOPSIS πΈ
dsymutil [options] executable
π¦ DESCRIPTION π¦
So here's the tea: dsymutil links up all the DWARF debug information hanging out inside the object files for an executable β and she does it by using the debug symbols information that's chilling in that executable's symbol table. She's basically the group chat organizer of debug data. π«Ά
By default? The linked debug information gets dropped into a .dSYM bundle with the same name as the executable. Cute, predictable, iconic. π
β¨ OPTIONS β¨
--accelerator=<accelerator type>β pick which type of accelerator table you want. The valid options are'Apple','Dwarf'and'Default'. That's it, that's the menu. π--arch <arch>β only link DWARF debug information for the CPU architecture types you name. Architectures get specified by name. Heads up: when you use this, if any architectures can't be properly linked, you get an error back. You can specify 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. π€--dump-debug-mapβ dumps the executable's debug-map (that's the list of the object files that contain the debug information) in YAML format, then exits. No DWARF link will take place. It's giving "just show me the receipts". π--flat,-fβ produces a flat dSYM file. A.dwarfextension gets appended to the executable name unless the output file is specified using the-ooption. π--gen-reproducerβ generate a reproducer consisting of the input object files. Very "here's a copy of my homework so you can reproduce the bug". π--help,-hβ print this help output. The classic. π--minimize,-zβ when used when creating a dSYM file, this one suppresses the emission of the.debug_inlines,.debug_pubnames, and.debug_pubtypessections, becausedsymutilcurrently has better equivalents:.apple_namesand.apple_types. And when used together with the--updateoption, it will cause redundant accelerator tables to be removed. Two jobs, one flag, main character energy. π--no-odrβ do not use ODR (One Definition Rule) for uniquing C++ types. π«--no-outputβ does the link in memory, but does not emit the result file. All vibes, no evidence. π--no-swiftmodule-timestampβ don't check the timestamp forswiftmodulefiles. π°οΈ--num-threads <threads>,-j <threads>β specifies the maximum number (n) of simultaneous threads to use when linking multiple architectures. Parallelism slay. π₯--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. π--papertrailβ when you're runningdsymutilas part of your build system, it can be desirable for warnings to be part of the end product rather than just being emitted to the output stream. When enabled, warnings are embedded in the linked DWARF debug information. Warning girlies, this one's for you. β οΈ--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. π--statisticsβ prints 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. It's a leaderboard. π--symbol-map <bcsymbolmap>β update the existing dSYMs inplace using the symbol map specified. π§-s,--symtabβ dumps the symbol table found inexecutableor object file(s) and exits. Peek inside, then dip. π-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 for your dSYM. β¨--use-reproducer <path>β use the object files from the given reproducer path. β»οΈ--verboseβ display verbose information when linking. Tell me everything, bestie. π£οΈ--verifyβ run the DWARF verifier on the linked DWARF debug info. Fact-check the fact-check. β-v,--versionβ display the version of the tool. π-yβ treatexecutableas a YAML debug-map rather than an executable. Plot twist. π
π₯ EXIT STATUS π₯
dsymutil returns 0 if the DWARF debug information was linked successfully. Otherwise, she returns 1. That's the whole vibe check. π
π SEE ALSO π
llvm-dwarfdump(1)β go say hi, they're mutuals. π«Ά
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/). They're the parents, we're just living in their house. π
πΈ COPYRIGHT πΈ
2003-2024, LLVM Project
and that's the whole page, bestie π this was DSYMUTIL(1), page 11, dated 2024-07-18 β now go link some DWARF and slay πβ¨
π¦ where this page comes from
- fedora 43: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 43: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 44: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 44: llvm11 11.1.0-14.fc41 Β· NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms