Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm-objdump: Use two hyphens in flags to objdump #270

Merged
merged 1 commit into from Oct 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/start/exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ If you look at the disassembly of the program:


``` console
$ cargo objdump --bin app --release -- -d -no-show-raw-insn -print-imm-hex
$ cargo objdump --bin app --release -- -d --no-show-raw-insn --print-imm-hex
(..)
ResetTrampoline:
8000942: movw r0, #0xfffe
Expand Down
5 changes: 4 additions & 1 deletion src/start/qemu.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,12 @@ is.
`cargo-objdump` can be used to disassemble the binary.

```console
cargo objdump --bin app --release -- -disassemble -no-show-raw-insn -print-imm-hex
cargo objdump --bin app --release -- --disassemble --no-show-raw-insn --print-imm-hex
```

> **NOTE** if the above command complains about `Unknown command line argument` see
> the following bug report: https://github.com/rust-embedded/book/issues/269

> **NOTE** this output can differ on your system. New versions of rustc, LLVM
> and libraries can generate different assembly. We truncated some of the instructions
> to keep the snippet small.
Expand Down