From 56ae28bb32c0d95fa4f64be6cd7bb4c4efccd9bf Mon Sep 17 00:00:00 2001 From: Wenyong Huang Date: Tue, 7 Dec 2021 10:32:10 +0800 Subject: [PATCH] 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. --- core/iwasm/aot/arch/aot_reloc_aarch64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/iwasm/aot/arch/aot_reloc_aarch64.c b/core/iwasm/aot/arch/aot_reloc_aarch64.c index 2634eff4..4c46eaa0 100644 --- a/core/iwasm/aot/arch/aot_reloc_aarch64.c +++ b/core/iwasm/aot/arch/aot_reloc_aarch64.c @@ -143,6 +143,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr, { switch (reloc_type) { case R_AARCH64_CALL26: + case R_AARCH64_JUMP26: { void *S, *P = (void *)(target_section_addr + reloc_offset); int64 X, A, initial_addend;