diff options
Diffstat (limited to 'kc/dynamic_x86_64.c')
| -rw-r--r-- | kc/dynamic_x86_64.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kc/dynamic_x86_64.c b/kc/dynamic_x86_64.c index 22300d6..6b7abd7 100644 --- a/kc/dynamic_x86_64.c +++ b/kc/dynamic_x86_64.c @@ -18,14 +18,15 @@ void kc_dynamic_init(void *base, Elf64_Dyn *dyn) { switch(dyn->d_tag) { - // check for basic relocations first case DT_RELA: reladyn.entries = (Elf64_Rela *)(dyn->d_ptr + (uintptr_t)base); break; case DT_RELASZ: reladyn.size = dyn->d_val; break; - // might be combined with JMPRELs so check those too + // NOTE: ELF x86_64 only uses RELA + // possibly support doing REL also for platforms that want it + // (am i ever going to use other platforms?) case DT_JMPREL: relaplt.entries = (Elf64_Rela *)(dyn->d_ptr + (uintptr_t)base); break; |
