DSYMUTIL(1)
β¨ DSYMUTIL(1) β LLVM's debug-symbol bestie β¨
okay bestie, welcome to the DSYMUTIL(1) page from LLVM β yes, the one and only. This is the manual for dsymutil, and we're gonna walk through it like a group chat, no cap. π
π NAME π
dsymutil β manipulate archived DWARF debug symbol files. That's the whole name vibe: it's the tool that handles archived DWARF debug symbol files. π¦
π¦ SYNOPSIS π¦
dsymutil [options] executable
π DESCRIPTION π
okay so dsymutil links the DWARF debug information found in the object files for an executable by using the debug symbols information contained in its symbol table. By default, the linked debug information is placed in a .dSYM bundle with the same name as the executable. That's the main-character move. β¨
π OPTIONS π
--accelerator=<accelerator type>β pick the desired type of accelerator table, bestie. Valid options areApple,Dwarf,Default, andNone. β¨--arch <arch>β link DWARF debug information only for the specified CPU architecture types. Architectures may be specified by name. When using this option, an error will be returned if any architectures can not be properly linked. This option can be specified multiple times, once for each desired architecture. All CPU architectures will be linked by default, and any architectures that can't be properly linked will causedsymutilto return an error. That's a lot of arch drama, but it's all true. π--dump-debug-mapβ dump the executable's debug-map (the list of the object files containing the debug information) in YAML format and exit. No DWARF link will take place. So it's just a peek, not a whole makeover. iykyk. π¦--fat64β use a 64-bit header when emitting universal binaries. Big 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. Flat and cute. π--gen-reproducerβ generate a reproducer consisting of the input object files. Alias for--reproducer=GenerateOnExit. iykyk. π--help,-hβ print this help output. The classic. π«Ά--keep-function-for-staticβ make a static variable keep the enclosing function even if it would have been omitted otherwise. Protective function energy, honestly. π--minimize,-zβ when used while 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--updateoption, this option will cause redundant accelerator tables to be removed. Minimalist queen. π--no-odrβ do not use ODR (One Definition Rule) for uniquing C++ types. No ODR, just vibes. π--no-outputβ do the link in memory, but do not emit the result file. All the work, none of the file. not me crying. π--no-swiftmodule-timestampβ don't check the timestamp for swiftmodule files. Timestamp? Not today. π--num-threads <threads>,-j <threads>β specifies the maximum number (n) of simultaneous threads to use when linking multiple architectures. Thread count go brrr. π₯--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; to helpdsymutilfind the Clang module cache. Path remapping slay. β¨--oso-prepend-path <path>β specifies a path to prepend to all debug symbol object file paths. Prepend that path, bestie. β¨--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. Output location flex. π--papertrailβ when 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. Warnings with a paper trail, iconic. π--remarks-drop-without-debugβ drop remarks without valid debug locations. Without this flag, all remarks are kept. Good to know. β--remarks-output-format <format>β specify the format to be used when serializing the linked remarks. Format picker moment. β¨--remarks-prepend-path <path>β specify a directory to prepend the paths of the external remark files. Prepend path, but for remarks. π«Ά--reproducer <mode>β specify the reproducer generation mode. Valid options areGenerateOnExit,GenerateOnCrash,Use, andOff. Mode select, but make it debug. π--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. Stats table realness. β¨--symbol-map <bcsymbolmap>β update the existing dSYMs inplace using the symbol map specified. Symbol map update, inplace. β¨-s,--symtabβ dumps the symbol table found in executable or object file(s) and exits. Symtab peek and dip. π (okay that emoji is extra but deserved.)-Sβ output textual assembly instead of a binary dSYM companion file. Assembly text, not binary. β¨--toolchain <toolchain>β embed the toolchain in the dSYM bundle's property list. Toolchain info, literally embedded. π-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 an old dSYM. π--use-reproducer <path>β use the object files from the given reproducer path. Alias for--reproducer=Use. Reproducer path activated. β¨--verboseβ display verbose information when linking. Tell me everything, bestie. β¨--verifyβ run the DWARF verifier on the linked DWARF debug info. Verification vibe check, ngl. β-v,--versionβ display the version of the tool. Version check. π«Ά-yβ treat executable as a YAML debug-map rather than an executable. YAML mode, not executable mode. iykyk. π¦
π EXIT STATUS π
dsymutil returns 0 if the DWARF debug information was linked successfully. Otherwise, it returns 1. That's the whole vibe check: 0 = slay, 1 = not slay, periodt. π
π SEE ALSO π
llvm-dwarfdump(1)β the other iconic manual in the friend group. obsessed. π«Ά
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/). Crown them, fr fr. π
π COPYRIGHT π
2003-2023, LLVM Project. The legal bestie has spoken. π
okay that's the whole DSYMUTIL(1) page, bestie β brought to you by LLVM, version 17, dated 2023-12-01. Go link some DWARF and slay. π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms