thorin
thorin
is an DWARF packaging utility for creating DWARF packages (*.dwp
files) out of input DWARF objects (*.dwo
files; or *.o
files with .dwo
sections), supporting both the pre-standard GNU extension format for DWARF packages and the standardized format introduced in DWARF 5.
Usage
thorin
can read input DWARF objects from executables or can package arbitrary input dwarf objects (including DWARF objects in archive files, such as Rust rlibs)!
thorin 0.1.0
merge dwarf objects into dwarf packages
USAGE:
thorin [OPTIONS] [--] [inputs]...
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-e, --exec <executables>... Specify path to executables to read list of dwarf objects from
-o, --output <output> Specify path to write the dwarf package to [default: -]
ARGS:
<inputs>... Specify path to input dwarf objects and packages
If the input objects are of DWARF version 5 or greater, then the output package will be in DWARF 5 format. For version 4 and below, the GNU Extension format will be used for the output package.
thorin
Contributing to If you want help or mentorship, reach out to us in a GitHub issue, or ask davidtwco
on the Rust Zulip instance.
thorin
should always build on stable rustc
. To build thorin
:
$ cargo build
We use rustfmt
to automatically format and style all of our code. To install and use rustfmt
:
$ rustup component add rustfmt
$ cargo fmt
Filing an Issue
Think you've found a bug? File an issue! To help us understand and reproduce the issue, provide us with:
- The (preferably minimal) test case
- Steps to reproduce the issue using the test case
- The expected result of following those steps
- The actual result of following those steps
Definitely file an issue if you see an unexpected panic originating from within thorin
! thorin
should never panic unless it is explicitly documented to panic in the specific circumstances provided.
Name
thorin
is named after Thorin Oakenshield from The Hobbit, as Thorin is a dwarf who leads other dwarves. thorin
uses the gimli
library (named after a dwarf from Lord of the Rings) to read DWARF format debug information, the name of which is a medieval fantasy complement to ELF, the file format for executables and object files.
You could also call this project
rust-dwp
, if you'd prefer that.
Author and acknowledgements
thorin
is authored by David Wood of Huawei Technologies Research & Development (UK) Ltd.
In addition, thanks to the authors of
object
and gimli
, on which this utility depends heavily; and to Philip Craig for advice and reviews during initial implementation of thorin
.
Licensed under either of LicenseApache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.