Skip to content

Add support for cargo-readelf command#175

Open
rruuaanng wants to merge 1 commit intorust-embedded:masterfrom
rruuaanng:add-cargo-readelf
Open

Add support for cargo-readelf command#175
rruuaanng wants to merge 1 commit intorust-embedded:masterfrom
rruuaanng:add-cargo-readelf

Conversation

@rruuaanng
Copy link

@rruuaanng rruuaanng commented Feb 26, 2026

Allows developers to use the cargo readelf sub-command.

Fixes: #89

@rruuaanng rruuaanng requested a review from a team as a code owner February 26, 2026 12:45
@rruuaanng rruuaanng force-pushed the add-cargo-readelf branch 3 times, most recently from d253b39 to 1f85b27 Compare February 27, 2026 03:46
Allows developers to use the `cargo readelf` sub-command.

Signed-off-by: James Roy <rruuaanng@outlook.com>
@diondokter
Copy link

Cool! I'd love this. But I will note that readelf is not available in the llvm-tools for windows.

@9names
Copy link

9names commented Feb 27, 2026

Weird to have a PR that closes itself on merge. Did you mean to write "fixes #89"?

@rruuaanng
Copy link
Author

Weird to have a PR that closes itself on merge. Did you mean to write "fixes #89"?

Yes!
(It looks like I screwed up.)

@rruuaanng
Copy link
Author

Cool! I'd love this. But I will note that readelf is not available in the llvm-tools for windows.

D:\LLVM>cmd
Microsoft Windows [Version 10.0.26200.7840]
(c)Microsoft Corporation. All rights reserved.

D:\LLVM>llvm-readelf --version
LLVM (http://llvm.org/):
  LLVM version 20.1.8
  Optimized build.

D:\LLVM>llvm-readobj --version
LLVM (http://llvm.org/):
  LLVM version 20.1.8
  Optimized build.

Looks good :)

@diondokter
Copy link

That's weird...? I don't have it. Just updated LLVM to the newest version 21 and I still don't have it.
The llvm-tools distributed by Rust (called rust-objcopy etc.) also don't have a readelf.

So, one of us has a weird installation :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add cargo-readelf subcommand.

3 participants