Skip to content

Commit 301374e

Browse files
authored
Merge pull request #476 from lenary/pr/relax-no-symbol
RELAX doesn't take the symbol in examples
2 parents 712449f + 9215bc5 commit 301374e

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
@@ -791,15 +791,15 @@ expands to the following assembly and relocation:
791791

792792
[,asm]
793793
----
794-
auipc ra, 0 # R_RISCV_CALL (symbol), R_RISCV_RELAX (symbol)
794+
auipc ra, 0 # R_RISCV_CALL (symbol), R_RISCV_RELAX
795795
jalr ra, ra, 0
796796
----
797797

798798
and when symbol has an `@plt` suffix it expands to:
799799

800800
[,asm]
801801
----
802-
auipc ra, 0 # R_RISCV_CALL_PLT (symbol), R_RISCV_RELAX (symbol)
802+
auipc ra, 0 # R_RISCV_CALL_PLT (symbol), R_RISCV_RELAX
803803
jalr ra, ra, 0
804804
----
805805

@@ -2034,15 +2034,15 @@ Relaxation result (short form):
20342034
Relaxation candidate:
20352035
[,asm]
20362036
----
2037-
auipc ra, 0 # R_RISCV_CALL (symbol), R_RISCV_RELAX (symbol)
2037+
auipc ra, 0 # R_RISCV_CALL (symbol), R_RISCV_RELAX
20382038
jalr ra, ra, 0
20392039
2040-
auipc ra, 0 # R_RISCV_CALL_PLT (symbol), R_RISCV_RELAX (symbol)
2040+
auipc ra, 0 # R_RISCV_CALL_PLT (symbol), R_RISCV_RELAX
20412041
jalr x0, ra, 0
20422042
2043-
jal ra, 0 # R_RISCV_JAL (symbol), R_RISCV_RELAX (symbol)
2043+
jal ra, 0 # R_RISCV_JAL (symbol), R_RISCV_RELAX
20442044
2045-
jal x0, 0 # R_RISCV_JAL (symbol), R_RISCV_RELAX (symbol)
2045+
jal x0, 0 # R_RISCV_JAL (symbol), R_RISCV_RELAX
20462046
----
20472047

20482048
Relaxation result:

0 commit comments

Comments
 (0)