diff options
Diffstat (limited to 'libexec/ld.so/aarch64/archdep.h')
-rw-r--r-- | libexec/ld.so/aarch64/archdep.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/ld.so/aarch64/archdep.h b/libexec/ld.so/aarch64/archdep.h index 0bf77612dd4..a34e6d6d18f 100644 --- a/libexec/ld.so/aarch64/archdep.h +++ b/libexec/ld.so/aarch64/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.5 2017/10/27 16:47:08 mpi Exp $ */ +/* $OpenBSD: archdep.h,v 1.6 2019/10/23 19:55:08 guenther Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -40,13 +40,13 @@ static inline void -RELOC_DYN(Elf64_Rela *r, const Elf64_Sym *s, Elf64_Addr *p, unsigned long v) +RELOC_DYN(Elf_RelA *r, const Elf_Sym *s, Elf_Addr *p, unsigned long v) { - if (ELF64_R_TYPE(r->r_info) == R_AARCH64_RELATIVE) { + if (ELF_R_TYPE(r->r_info) == R_AARCH64_RELATIVE) { *p = v + r->r_addend; - } else if (ELF64_R_TYPE(r->r_info) == R_AARCH64_GLOB_DAT) { + } else if (ELF_R_TYPE(r->r_info) == R_AARCH64_GLOB_DAT) { *p = v + s->st_value + r->r_addend; - } else if (ELF64_R_TYPE(r->r_info) == R_AARCH64_ABS64) { + } else if (ELF_R_TYPE(r->r_info) == R_AARCH64_ABS64) { *p = v + s->st_value + r->r_addend; } else { _dl_exit(6); |