Skip to content

Commit 3e4edc7

Browse files
authored
Merge pull request #396 from ishitatsuyuki/tlsdesc-fix-ie-example
Fix TLSDESC -> Initial Exec example.
2 parents 22468ff + af7fa55 commit 3e4edc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

riscv-elf.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,8 +1684,8 @@ Condition::
16841684
Relaxation::
16851685

16861686
- Instruction associated with `R_RISCV_TLSDESC_HI20` or `R_RISCV_TLSDESC_LOAD_LO12_I` can be removed.
1687-
- Instruction associated with `R_RISCV_TLSDESC_ADD_LO12_I` can be replaced with load of the high PC-relative offset of the symbol's GOT entry.
1688-
- Instruction associated with `R_RISCV_TLSDESC_CALL` can be replaced with load of the low PC-relative offset of the symbol's GOT entry.
1687+
- Instruction associated with `R_RISCV_TLSDESC_ADD_LO12_I` can be replaced with load of the high half of the symbol's GOT address.
1688+
- Instruction associated with `R_RISCV_TLSDESC_CALL` can be replaced with load of the low half of the symbol's GOT address.
16891689
Example::
16901690
+
16911691
--
@@ -1704,7 +1704,7 @@ Relaxation result:
17041704

17051705
[,asm]
17061706
----
1707-
lui a0, <pcrel-got-offset-for-symbol-hi>
1707+
auipc a0, <pcrel-got-offset-for-symbol-hi>
17081708
{ld,lw} a0, <pcrel-got-offset-for-symbol-lo>(a0)
17091709
----
17101710
--

0 commit comments

Comments
 (0)