~taiite/protodump

Free .o to .h converter
doc: put the description above the options
fix typo in man page
support DW_TAG_Atomic

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~taiite/protodump
read/write
git@git.sr.ht:~taiite/protodump

You can also use your local clone with git send-email.

#protodump

Free .o to .h converter.

protodump reads object files, looks for DWARF information and combines it with the table of exported symbols. It can also find differences between two object files and can be used to see if their ABI is the same.

#Building

Use cargo build.

You may add and remove support for specific object file types with "Cargo features". They are all enabled by default:

  • coff (old windows executable)
  • elf (used in unixes)
  • macho (by apple)
  • pe (for windows)
  • wasm (web assembly)

Use cargo --no-default-features --features elf,wasm to choose.

Other available features:

  • compression: enable reading compressed debug info sections. Disabled by default.

#Usage

protodump $(command -v protodump)
# or
cargo run -- target/debug/protodump

Run protodump --help for the list of options, and see the man page protodump(1) for more information.

#Contributing

Ask questions and send patches on the mailing list. File bugs on the bug tracker.

To send a patch, install & configure git-send-email, then

git config sendemail.to '~taiite/public-inbox@lists.sr.ht'
git config format.subjectprefix "PATCH protodump"
vi makeyourchanges.txt
git commit -am nameyourchanges
git send-email 'HEAD^'