Hi, I found that the cargo-readobj command proxies the llvm-readobj tool and uses --elf-output-style=GNU to make the output compatible with gnu-readelf. LLVM do provide a tool called llvm-readelf which is a symbolic link to llvm-readobj but is more compatible with gnu-readelf.
For example, gnu-readelf -s dumps symbols, llvm-readelf -s dumps symbols but llvm-readobj --elf-output-style -s dumps sections.
Do you have interest in adding cargo-readelf subcommand? I can give it a try.
Hi, I found that the
cargo-readobjcommand proxies thellvm-readobjtool and uses--elf-output-style=GNUto make the output compatible withgnu-readelf. LLVM do provide a tool calledllvm-readelfwhich is a symbolic link tollvm-readobjbut is more compatible withgnu-readelf.For example,
gnu-readelf -sdumps symbols,llvm-readelf -sdumps symbols butllvm-readobj --elf-output-style -sdumps sections.Do you have interest in adding
cargo-readelfsubcommand? I can give it a try.