LLVM-DWARFUTIL(1)
β¨ LLVM-DWARFUTIL β¨
okay bestie, welcome to llvm-dwarfutil β that's the LLVM manual, section 1 (general commands, iykyk) π
π NAME π
llvm-dwarfutil β a tool to copy and manipulate debug info
π¦ SYNOPSIS π¦
llvm-dwarfutil [options] input output
πΈ DESCRIPTION πΈ
llvm-dwarfutil is a tool to copy and manipulate debug info. fr fr that's the whole job description.
In basic usage, it makes a semantic copy of the input to the output. And like⦠if you throw any options at it, the output may get modified along the way, e.g. by removing unused debug info. the way it just quietly upgrades your file while copying?? obsessed.
If - is specified for the input file, the input is read from the program's standard input stream. If - is specified for the output file, the output is written to the standard output stream of the program. pipes slay π
The tool is still in active development. so like, it's in its growth era, be nice to it π
π COMMAND-LINE OPTIONS π
--garbage-collectionβ Removes pieces of debug information related to discarded sections. When the linker does section garbage collection, the abandoned debug info is left behind, and that abandoned debug info references address ranges using tombstone values. So when this option is specified, the tool removes debug info which is marked with the tombstone value. lowkey a cleanup queen π§Ή
That option is enabled by default. β
--odr-deduplicationβ Remove duplicated types (if "One Definition Rule" is supported by source language). Keeps the first type definition and removes other definitions, potentially significantly reducing the size of output debug info. it's giving "you already told me this, bestie" π
That option is enabled by default. β
--help,-hβ Print a summary of command line options. your little cheat sheet π«Ά--no-garbage-collectionβ Disable--garbage-collection.--no-odr-deduplicationβ Disable--odr-deduplication.--no-separate-debug-fileβ Disable--separate-debug-file.--num-threads=<n>,-jβ Specifies the maximum number (n) of simultaneous threads to use for processing. parallel processing era β‘--separate-debug-fileβ Generate separate file containing output debug info. Usingllvm-dwarfutilwith that option equals to the following set of commands:
llvm-objcopy --only-keep-debug in-file out-file.debug
llvm-objcopy --strip-debug in-file out-file
llvm-objcopy --add-gnu-debuglink=out-file.debug out-file
one flag doing the job of three commands?? main character energy fr π
--tombstone=<value>β <value> can be one of the following values:bfd: zero for all addresses and[1,1]for DWARF v4 (or less) address ranges and exec.maxpc:-1for all addresses and-2for DWARF v4 (or less) address ranges.universal: bothbfdandmaxpc.exec: match with address ranges of executable sections.
The value universal is used by default. β
--verboseβ Enable verbose logging. This option disables multi-thread mode. so pick your fighter: yapping or threading π--verifyβ Run the DWARF verifier on the output DWARF debug info. vibe check on your debug info, no cap β--versionβ Print the version of this program.
π SUPPORTED FORMATS π
The following formats are currently supported by llvm-dwarfutil:
- ELF
(yes bestie, that's the whole list. ELF only. we love a focused icon π)
π EXIT STATUS π
llvm-dwarfutil exits with a non-zero exit code if there is an error. Otherwise, it exits with code 0. clean exit = happy exit β¨
π§ BUGS π§
To report bugs, please visit <https://github.com/llvm/llvm-project/labels/tools:llvm-dwarfutil/>. tell them everything, they wanna know π«Ά
π Author π
Maintained by the LLVM Team (<https://llvm.org/>).
π Copyright π
2003-2026, LLVM Project
okay that's the whole page, bestie!! this one's from LLVM, version 22, dated 2026-07-16 β go forth and copy some debug info, ily, bye!! πβ¨ππ¦
π¦ where this page comes from
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm 22.1.8-4.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