LLVM-DWARFUTIL(1)
π LLVM-DWARFUTIL(1) π
okay bestie, this is the llvm-dwarfutil page from the LLVM manual β and it's giving "copy and manipulate debug info" main character energy. No cap, we're gonna get through every single option together. Let's go π
β¨
π NAME π
llvm-dwarfutil β a tool to copy and manipulate debug info. That's the whole vibe, periodt.
π¦ SYNOPSIS π¦
llvm-dwarfutil [options] input output
πΈ DESCRIPTION πΈ
llvm-dwarfutil is a tool to copy and manipulate debug info. In basic usage, it makes a semantic copy of the input to the output. If any options are specified, the output may be modified along the way, e.g. by removing unused debug info. Literally so handy.
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. So yes, bestie, stdin/stdout is on the menu π«Ά
The tool is still in active development β lowkey a work in progress, fr fr. Keep that in mind!
β¨ 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. Such 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. That option is enabled by default. Slay.--odr-deduplicationβ Remove duplicated types (if βOne Definition Ruleβ is supported by source language). Keeps first type definition and removes other definitions, potentially significantly reducing the size of output debug info. That option is enabled by default. Iconic size win.--help,-hβ Print a summary of command line options.--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.--separate-debug-fileβ Generate separate file containing output debug info. Usingllvm-dwarfutilwith that option equals to the following set of commands:
:program:`llvm-objcopy` --only-keep-debug in-file out-file.debug
:program:`llvm-objcopy` --strip-debug in-file out-file
:program:`llvm-objcopy` --add-gnu-debuglink=out-file.debug out-file
--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. Default slay!
--verboseβ Enable verbose logging. This option disables multi-thread mode.--verifyβ Run the DWARF verifier on the output DWARF debug info.--versionβ Print the version of this program.
π SUPPORTED FORMATS π
The following formats are currently supported by llvm-dwarfutil:
ELF
β EXIT STATUS β
llvm-dwarfutil exits with a non-zero exit code if there is an error. Otherwise, it exits with code 0. So happy path = 0, error = non-zero. Simple as that π
π BUGS π
To report bugs, please visit the link exactly as the page has it: <β https://github.com/llvm/llvm-project/labels/tools:llvm-dwarfutil/>. (Yes, that's the exact link, bestie β iykyk.)
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/).
π COPYRIGHT π
2003-2023, LLVM Project
mwah π β that's the whole page, bestie. This one is LLVM-DWARFUTIL(1), version 15, dated 2023-07-14. Now go copy some debug info and slay β¨π«Ά
π¦ where this page comes from
- ubuntu jammy: llvm-15 1:15.0.7-0ubuntu0.22.04.3 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms