Skip to content

Commit 5ffe5b5

Browse files
authored
Merge pull request #421 from MaskRay/tlsdesc-relax
Relaxable TLSDESC only requires that R_RISCV_TLSDESC_HI20 to be paired with R_RISCV_RELAX
2 parents 7044e16 + c96a69e commit 5ffe5b5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

riscv-elf.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,9 +1848,9 @@ Relaxation candidate (`tX` and `tY` can be any combination of two general purpos
18481848
----
18491849
label:
18501850
auipc tX, <hi> // R_RISCV_TLSDESC_HI20 (symbol), R_RISCV_RELAX
1851-
lw tY, tX, <lo> // R_RISCV_TLSDESC_LOAD_LO12 (label), R_RISCV_RELAX
1852-
addi a0, tX, <lo> // R_RISCV_TLSDESC_ADD_LO12 (label), R_RISCV_RELAX
1853-
jalr t0, tY // R_RISCV_TLSDESC_CALL (label), R_RISCV_RELAX
1851+
lw tY, tX, <lo> // R_RISCV_TLSDESC_LOAD_LO12 (label)
1852+
addi a0, tX, <lo> // R_RISCV_TLSDESC_ADD_LO12 (label)
1853+
jalr t0, tY // R_RISCV_TLSDESC_CALL (label)
18541854
----
18551855

18561856
Relaxation result:
@@ -1889,9 +1889,9 @@ Relaxation candidate (`tX` and `tY` can be any combination of two general purpos
18891889
----
18901890
label:
18911891
auipc tX, <hi> // R_RISCV_TLSDESC_HI20 (symbol), R_RISCV_RELAX
1892-
lw tY, tX, <lo> // R_RISCV_TLSDESC_LOAD_LO12 (label), R_RISCV_RELAX
1893-
addi a0, tX, <lo> // R_RISCV_TLSDESC_ADD_LO12 (label), R_RISCV_RELAX
1894-
jalr t0, tY // R_RISCV_TLSDESC_CALL (label), R_RISCV_RELAX
1892+
lw tY, tX, <lo> // R_RISCV_TLSDESC_LOAD_LO12 (label)
1893+
addi a0, tX, <lo> // R_RISCV_TLSDESC_ADD_LO12 (label)
1894+
jalr t0, tY // R_RISCV_TLSDESC_CALL (label)
18951895
----
18961896

18971897
Relaxation result (long form):

0 commit comments

Comments
 (0)