-/* $OpenBSD: archdep.h,v 1.3 2021/11/14 22:07:39 guenther Exp $ */
+/* $OpenBSD: archdep.h,v 1.4 2022/01/16 02:16:40 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
#define RELOC_TAG DT_RELA
#define MACHID EM_PPC64 /* ELF e_machine ID value checked */
-#include <elf.h>
-#include <machine/reloc.h>
-#include "syscall.h"
-#include "util.h"
+#ifdef RCRT0
+/* currently only used by RELOC_DYN() below */
static inline void
_dl_dcbf(Elf_Addr *addr)
{
/* Only used in lib/csu/boot.h */
static inline void
-RELOC_DYN(Elf_RelA *r, const Elf_Sym *s, Elf_Addr *p, unsigned long v)
+RELOC_DYN(const Elf_RelA *r, const Elf_Sym *s, Elf_Addr *p, unsigned long v)
{
if (ELF_R_TYPE(r->r_info) == R_PPC64_RELATIVE) {
*p = v + r->r_addend;
}
}
+#endif /* RCRT0 */
#endif /* _POWERPC_ARCHDEP_H_ */