Skip to content

Commit 3462df7

Browse files
committed
Add NOTE for recommend .option push/norelax/pop
1 parent 36d28e3 commit 3462df7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

riscv-asm.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ NOTE: Code region follows by `.option relax` will emit
205205
usage is using `.option norelax` with `.option push`/`.option pop` if
206206
you want to disable linker relaxation on specific code region.
207207

208+
NOTE: Recommended way to disable linker relaxation of specific code region is
209+
use `.option push`, `.option norelax` and `.option pop`, that prevent enabled
210+
linker relaxation accidentally if user already disable linker relaxation.
211+
208212
#### `push`/`pop`
209213

210214
Push/pop current options to/from the options stack.

0 commit comments

Comments
 (0)