Skip to content

Commit

Permalink
Merge #270
Browse files Browse the repository at this point in the history
270: llvm-objdump: Use two hyphens in flags to objdump r=eldruin a=adhoore

LLVM 11 changed the behavior of these tools.
See #269

Co-authored-by: Alexander D'hoore <dhoore.alexander@gmail.com>
  • Loading branch information
bors[bot] and AlexanderDhoore authored Oct 12, 2020
2 parents 82bb5df + da2ddb9 commit 79ab777
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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

0 comments on commit 79ab777

Please sign in to comment.