Skip to content

Commit a53c726

Browse files
authored
objdump parameters updated to two dashes in asm
1 parent df652b2 commit a53c726

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/asm.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ by writing a very simple program.
8989
Here's the disassembly. Look at the address of `HardFaultTrampoline`.
9090

9191
``` console
92-
$ cargo objdump --bin app --release -- -d -no-show-raw-insn -print-imm-hex
92+
$ cargo objdump --bin app --release -- -d --no-show-raw-insn -print-imm-hex
9393
```
9494

9595
``` text
@@ -114,7 +114,8 @@ $ cargo objdump --bin app --release -- -s -j .vector_table
114114

115115
The downside of using the `cc` crate is that it requires some assembler program
116116
on the build machine. For example when targeting ARM Cortex-M the `cc` crate
117-
uses `arm-none-eabi-gcc` as the assembler.
117+
uses `arm
118+
ne-eabi-gcc` as the assembler.
118119

119120
Instead of assembling the file on the build machine we can ship a pre-assembled
120121
file with the `rt` crate. That way no assembler program is required on the build
@@ -178,7 +179,7 @@ Now we can test this new version against the simple program from before and
178179
we'll get the same output.
179180

180181
``` console
181-
$ cargo objdump --bin app --release -- -d -no-show-raw-insn -print-imm-hex
182+
$ cargo objdump --bin app --release -- -d --no-show-raw-insn -print-imm-hex
182183
```
183184

184185
``` text

0 commit comments

Comments
 (0)