Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

add R_LARCH_JIRL_LO12 #69

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/LoongArch-ELF-ABI-CN.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,14 @@ v2.01
|R_LARCH_RELAX
|在相同的地址和其它重定位成对使用,标识指令可能被修改或删除(relaxed)。
|

|101
|R_LARCH_JIRL_LO12
|将 32/64 位绝对地址的 [11 ... 2] 位符号扩展到 16 位
|`+(*(uint32_t *) PC) [25 ... 10] = sign_ext((S+A) [11 ... 2])+`

带 4 位对齐检测功能

|===


Expand Down
8 changes: 8 additions & 0 deletions docs/LoongArch-ELF-ABI-EN.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,14 @@ with check 28-bit signed overflow and 4-bit aligned
|R_LARCH_RELAX
|Instruction can be relaxed, paired with a normal relocation at the same address
|

|101
|R_LARCH_JIRL_LO12
|Sign-extend [11 ... 2] bits of 32/64-bit absolute address to 16 bit
|`+(*(uint32_t *) PC) [25 ... 10] = sign_ext((S+A) [11 ... 2])+`

with checking for 4-bit alignment

|===


Expand Down