Skip to content

Commit 79ab777

Browse files
Merge #270
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>
2 parents 82bb5df + da2ddb9 commit 79ab777

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/start/exceptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ If you look at the disassembly of the program:
249249

250250

251251
``` console
252-
$ cargo objdump --bin app --release -- -d -no-show-raw-insn -print-imm-hex
252+
$ cargo objdump --bin app --release -- -d --no-show-raw-insn --print-imm-hex
253253
(..)
254254
ResetTrampoline:
255255
8000942: movw r0, #0xfffe

src/start/qemu.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,12 @@ is.
259259
`cargo-objdump` can be used to disassemble the binary.
260260

261261
```console
262-
cargo objdump --bin app --release -- -disassemble -no-show-raw-insn -print-imm-hex
262+
cargo objdump --bin app --release -- --disassemble --no-show-raw-insn --print-imm-hex
263263
```
264264

265+
> **NOTE** if the above command complains about `Unknown command line argument` see
266+
> the following bug report: https://github.com/rust-embedded/book/issues/269
267+
265268
> **NOTE** this output can differ on your system. New versions of rustc, LLVM
266269
> and libraries can generate different assembly. We truncated some of the instructions
267270
> to keep the snippet small.

0 commit comments

Comments
 (0)