mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 21:26:21 +00:00
Implement relocation R_AARCH64_JUMP26 for aarch64 (#873)
Treat R_AARCH64_JUMP26 same as R_AARCH64_CALL26, both of their relocation operation is S + A - P, the difference is that one is for call (BL) instructions, the other is for jump (B) instructions.
This commit is contained in:
parent
a06ede0de1
commit
56ae28bb32
|
@ -143,6 +143,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr,
|
||||||
{
|
{
|
||||||
switch (reloc_type) {
|
switch (reloc_type) {
|
||||||
case R_AARCH64_CALL26:
|
case R_AARCH64_CALL26:
|
||||||
|
case R_AARCH64_JUMP26:
|
||||||
{
|
{
|
||||||
void *S, *P = (void *)(target_section_addr + reloc_offset);
|
void *S, *P = (void *)(target_section_addr + reloc_offset);
|
||||||
int64 X, A, initial_addend;
|
int64 X, A, initial_addend;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user