Skip to content

Commit

Permalink
Fix the asm indent and 64-bit diretives.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuan-Lin Chen committed Feb 6, 2024
1 parent c9e7740 commit af3126c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions riscv-elf.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ is appeneded in .text section or put into .rodata section.
----
# Get address of a symbol
# Literal pool
.LCPI0:
.dword symbol
.LCPI0:
.8byte symbol
.Ltmp0: auipc a0, %pcrel_hi(.LCPI0)
ld a0, %pcrel_lo(.Ltmp0)(a0)
----
Expand All @@ -159,8 +159,8 @@ function call can reach the whole 64-bit address space.
----
# Function call
# Literal pool
.LCPI1:
.dword function
.LCPI1:
.8byte function
.Ltmp1: auipc a0, %pcrel_hi(.LCPI1)
ld a0, %pcrel_lo(.Ltmp1)(a0)
jalr a0
Expand Down

0 comments on commit af3126c

Please sign in to comment.