LLVM-DWARFUTIL(1)
π LLVM-DWARFUTIL(1) β the LLVM manual page, bestie edition
okay so before we even start: this whole page lives in the LLVM manual set, so likeβ¦ that's the family it belongs to π«Ά. Now buckle up, we're copying debug info and it's gonna slay.
β¨ NAME β¨
llvm-dwarfutil β a tool to copy and manipulate debug info. literally what it says on the tin π
π SYNOPSIS π
llvm-dwarfutil [options] input output
π¦ DESCRIPTION π¦
llvm-dwarfutil is a tool to copy and manipulate debug info. that's the whole vibe.
in basic usage, it makes a semantic copy of the input to the output. like, a copy that actually means the same thing, not just a byte-for-byte photocopy, iykyk β¨. and if you pass any options, the output may be modified along the way β e.g. by removing unused debug info. glow-up courtesy of flags π
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. dash dash bestie, very piping-friendly π
the tool is still in active development. she's growing, be patient with her π§
π COMMAND-LINE OPTIONS π
--garbage-collectionβ removes pieces of debug information related to discarded sections. see, when the linker does section garbage collection, the abandoned debug info just gets left behind like a ghost π. 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. very much giving cleanup era β¨
that option is enabled by default. periodt.
--odr-deduplicationβ remove duplicated types (if "One Definition Rule" is supported by source language). keeps the first type definition and removes the other definitions, potentially significantly reducing the size of output debug info. not me deleting your duplicate type definitions π no cap, the size savings are real.
that option is enabled by default too.
--help,-hβ print a summary of command line options. the classic, the icon, the main character π--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. get her a little parallel sparkle β‘--separate-debug-fileβ generate a separate file containing output debug info. usingllvm-dwarfutilwith that option equals to the following set of commands, fr fr:
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
three commands in a trench coat π§₯ iconic behavior.
--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 andexec.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. she contains multitudes π
--verboseβ enable verbose logging. this option disables multi-thread mode. so like, you get the tea but you lose the parallelism, trade-offs bestie π--verifyβ run the DWARF verifier on the output DWARF debug info. vibe check on your debug info, honestly π--versionβ print the version of this program.
πΈ SUPPORTED FORMATS πΈ
the following formats are currently supported by llvm-dwarfutil:
- ELF
one format, but she ate π (this list is short, the list is honest, we respect the list)
β EXIT STATUS β
llvm-dwarfutil exits with a non-zero exit code if there is an error. otherwise, it exits with code 0. so 0 = slay, nonzero = something went sideways π
π BUGS π
to report bugs, please visit <https://github.com/llvm/llvm-project/labels/tools:llvm-dwarfutil/>. go tell them what's wrong, they want to know, be brave π«Ά
π AUTHOR π
maintained by the LLVM Team (<https://llvm.org/>).
π COPYRIGHT π
2003-2025, LLVM Project.
okay and that's the page!! π tiny cute sign-off: this beauty comes from the LLVM source, this particular rendering is dated 2025-01-17 with that little section number 19 tagging along β go build something iconic with it, bestie πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· 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