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:
Wenyong Huang 2021-12-07 10:32:10 +08:00 committed by GitHub
parent a06ede0de1
commit 56ae28bb32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;