From b3a968f585e7e7e8a98c9a9abcaae761640ecb67 Mon Sep 17 00:00:00 2001 From: guenther Date: Sun, 16 Jan 2022 02:14:27 +0000 Subject: [PATCH] Nothing depends on archdep.h pulling in other #includes anymore, so delete the #includes and hide the RELOC_* functions that are only used by lib/csu behind "#ifdef RCRT0" ok aoyama@ --- libexec/ld.so/m88k/archdep.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/libexec/ld.so/m88k/archdep.h b/libexec/ld.so/m88k/archdep.h index a7c161fb7a7..fa16862117f 100644 --- a/libexec/ld.so/m88k/archdep.h +++ b/libexec/ld.so/m88k/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.9 2021/11/14 22:07:38 guenther Exp $ */ +/* $OpenBSD: archdep.h,v 1.10 2022/01/16 02:14:27 guenther Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -32,15 +32,11 @@ #define RELOC_TAG DT_RELA #define MACHID EM_88K /* ELF e_machine ID value checked */ -#include -#include -#include "syscall.h" -#include "util.h" - - /* Only used in lib/csu/boot.h */ +#ifdef RCRT0 + 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) == RELOC_BBASED_32) { *p = v + r->r_addend; @@ -51,4 +47,5 @@ RELOC_DYN(Elf_RelA *r, const Elf_Sym *s, Elf_Addr *p, unsigned long v) } } +#endif /* RCRT0 */ #endif /* _M88K_ARCHDEP_H_ */ -- 2.20.1