Skip to content

Commit f809b84

Browse files
YohnWangaswaterman
authored andcommitted
fix typo in line 473 (#76)
1 parent 8dad3dd commit f809b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv-elf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ is followed by an I-Type instruction (add immediate or load) with an
470470
calculated like this:
471471

472472
- `hi20 = ((symbol_address + 0x800) >> 12);`
473-
- `lo12 = symbol_address - hi20;`
473+
- `lo12 = symbol_address - (hi20 << 12);`
474474

475475
The following assembly and relocations show loading an absolute address:
476476

0 commit comments

Comments
 (0)