From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master

aarch64: support JUMP_SLOT relocation in the kernel

Signed-off-by: Waldemar Kozaczuk <[email protected]>

---
diff --git a/arch/aarch64/arch-elf.cc b/arch/aarch64/arch-elf.cc
--- a/arch/aarch64/arch-elf.cc
+++ b/arch/aarch64/arch-elf.cc
@@ -17,6 +17,7 @@ bool arch_init_reloc_dyn(struct init_table *t, u32 type, u32 
sym,
     case R_AARCH64_NONE2:
         break;
     case R_AARCH64_GLOB_DAT:
+    case R_AARCH64_JUMP_SLOT:
         *static_cast<u64*>(addr) = t->dyn_tabs.lookup(sym)->st_value + addend;
         break;
     case R_AARCH64_TLS_TPREL64:

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/00000000000084fdc4059f66d408%40google.com.

Reply via email to